Hello @Sypula, Aleksandra,
Did you see the below note?
I have not tried the Service Principal route, but you may try the below suggestion!
Need to create a service principal in Azure DevOps and grant it access to the Artifacts feed. Then, you can use the --extra-index-url
option with the URL of the Artifacts feed and the --user
and --password
options with the service principal credentials to authenticate and install the package.
The command will look like this:
pip install --extra-index-url=https://pkgs.dev.azure.com/{organization}/_packaging/{feed}/pypi/simple/ --user {service_principal_id} --password {service_principal_secret} {package_name}
Replace {organization}
with the name of your Azure DevOps organization, {feed}
with the name of your Artifacts feed, {service_principal_id}
with the ID of your service principal, {service_principal_secret}
with the secret of your service principal, and {package_name}
with the name of the Python package you want to install.
I hope this helps! Let me know if this helps with initial query!