Lesstep
Azure Artifacts · Python · Checked November 6, 2026

Azure Artifacts: pip "401 Error, Credentials not correct for …/pypi/simple/"

pip asks the feed's index (…/_packaging/<feed>/pypi/simple/<package>/) which versions exist. Azure Artifacts answers 401 to a request without a credential it accepts. pip does not stop there: it prints a warning, treats the feed as having nothing, and then fails with (from versions: none). That reads like the package is not on the feed, but the feed was never read (a Stack Overflow question on it has been seen over 40,000 times).

When pip install fails in a pull request's build validation, the pull request waits on it: Azure DevOps Pull Requests, a plugin for JetBrains IDEs, lists the pull request's branch policies with their state in your IDE, and with Pro runs a failed build policy again once the feed lets the build in. Get it on JetBrains Marketplace

What it looks like

On your machine: artifacts-keyring

Without artifacts-keyring: a personal access token

In a pipeline: PipAuthenticate before pip install

Poetry

Azure DevOps pull requests in IntelliJ IDEA and Rider

Azure DevOps Pull Requests, a plugin by Lesstep for JetBrains IDEs 2024.1 or later and Android Studio, reads the organization, project and repository from your git remote and lists the pull requests that wait for your review in an IDE tool window, on Azure DevOps Services and on Azure DevOps Server. It shows the branch policies of a pull request with their state, so a required build that has not passed is next to its pull request, and with Pro you run a failed or expired build policy again from there. The review inbox is free; voting, commenting, completing and creating are Pro, with a 30-day trial.

Get it on JetBrains Marketplace

Azure DevOps, Azure Artifacts and Azure Pipelines are trademarks of Microsoft Corporation; Python and PyPI are trademarks of the Python Software Foundation; IntelliJ IDEA and Rider are trademarks of JetBrains s.r.o. This page is not affiliated with or endorsed by Microsoft, the Python Software Foundation or JetBrains.

More: Maven: 401 Unauthorized from a feed · NuGet: Unable to load the service index for source · npm: E401 Unable to authenticate · checkout stops with Git fetch failed with exit code: 128 · 日本語