title | description | ms.service | ms.topic | ms.date | monikerRange |
---|---|---|---|---|---|
Install Python packages (CLI) |
Learn how to install Python packages from the command-line interface. |
azure-devops-artifacts |
how-to |
01/15/2025 |
<=azure-devops |
[!INCLUDE version-gt-eq-azure-devops-2019]
This article guides you through installing Python packages from an Azure Artifacts feed using the NuGet command-line interface.
Product | Requirements |
---|---|
Azure DevOps | - An Azure DevOps organization. - An Azure DevOps project. - Download and install Python. |
-
Follow the steps in the Project setup to authenticated with your feed if you haven't done so, then proceed to the next step.
-
Sign in to your Azure DevOps organization, and then navigate to your project.
-
Select Artifacts, and then select Connect to feed.
-
Select pip from the left navigation area. If this is your first time using Azure Artifacts with pip, make sure to install the prerequisites by selecting Get the tools and following the provided steps.
-
Add a pip.ini (Windows) or pip.conf (Mac/Linux) file to your virtualenv and paste the provided snippet into it. Your file should look similar to the following snippet:
[global] index-url=https://pkgs.dev.azure.com/ORGANIZATION_NAME/PROJECT_NAME/_packaging/FEED_NAME/pypi/simple/
-
Run this command in your project directory to install your packages:
pip install
Important
You must have pip 19.2 or higher to use artifacts-keyring. See Usage requirements for more details.