当我尝试从 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)