我在 Azure 的私有 PyPI 中有 python 包。我想将其安装在其他项目中,但它仅适用于pipenv install --skip-lock. 这个最小的Pipfile应该可以正常工作
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[[source]]
url = "https://${USERNAME}:${TOKEN}@MyUrl"
verify_ssl = true
name = "example"
[packages]
MyPackage = "*"
[requires]
python_version = "3.8"
Run Code Online (Sandbox Code Playgroud)
但是当我这样做时pipenv install,我收到此错误
pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
You can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: No matching distribution found for MyPackage
Run Code Online (Sandbox Code Playgroud)
但当我这样做时,pipenv install --skip-lock我可以毫无问题地安装它。
我在 Windows 和 Linux 中尝试了许多版本的 pipelinev,但得到了相同的错误。这很奇怪,因为我总是使用它,但一天又一天它停止工作。
| 归档时间: |
|
| 查看次数: |
1368 次 |
| 最近记录: |