小编Nel*_*ung的帖子

从 Azure DevOps Python Artifacts feed 安装 pip 不起作用

当我尝试从 Azure DevOps Artifacts 源安装包时,出现错误:

Looking in indexes: https://pypi.org/simple, https://pkgs.dev.azure.com/company/company_Software/_packaging/PyPI/pypi/simple/
ERROR: Could not find a version that satisfies the requirement as-api (from versions: none)
ERROR: No matching distribution found for as-api
Run Code Online (Sandbox Code Playgroud)

由于使用pip install -vvv可能会产生机密信息,因此我无法在此处提供完整日志。请随时提出有关日志的任何具体问题。与此同时,我可以看到有希望的消息,例如:

Found index url https://pkgs.dev.azure.com/company/company_Software/_packaging/PyPI/pypi/simple/
Getting credentials from keyring for https://pkgs.dev.azure.com/company/company_Software/_packaging/PyPI/pypi/simple/
Run Code Online (Sandbox Code Playgroud)

还有一些有问题的消息?:

Status code 302 not in (200, 203, 300, 301)
Skipping link: not a file: ...
Given no hashes to check 0 links for project 'as-api': discarding no candidates
Run Code Online (Sandbox Code Playgroud)

复制细节

virtualenv .venv
.\.venv\Scripts\activate
python …
Run Code Online (Sandbox Code Playgroud)

python pip azure azure-devops azure-artifacts

11
推荐指数
3
解决办法
7925
查看次数

标签 统计

azure ×1

azure-artifacts ×1

azure-devops ×1

pip ×1

python ×1