我知道很多问题都被问到了,但我被难住了。
我有一个私有的PyPI仓库,比如“https://pypi.my_domain.com”,它已经运行了几年。然而,当我运行下面的命令时(以前是有效的),它说它找不到文件,但我看到它就在那里!
$ ./pip install --index-url https://${USERNAME}:${PASSWORD}@pypi.my_domain.com canpy
Looking in indexes: https://:****@pypi.my_domain.com
ERROR: Could not find a version that satisfies the requirement canpy (from versions: none)
ERROR: No matching distribution found for canpy
以下是我的私有PyPI repo中可供下载的文件:
当我运行pip debug --verbose
查看兼容版本时,我得到以下输出,它与我在私人存储库中可供下载/安装的内容相匹配。注意最后一个cp36-cp36m-linux_armv7l
,这是我在这台类似乌藨子Pi的计算机上需要的。
注意:这已经工作过很多次了!今天它就不工作了…
/mnt/dataflash/miniconda3/bin/pip debug --verbose
WARNING: This command is only meant for debugging. Do not use this with automation for parsing and getting these details, since the output and options of this command may change without notice.
pip version: pip 21.3.1 from /mnt/dataflash/miniconda3/lib/python3.6/site-packages/pip (python 3.6)
sys.version: 3.6.6 | packaged by rpi | (default, Sep 6 2018, 10:56:14)
[GCC 6.3.0 20170516]
sys.executable: /mnt/dataflash/miniconda3/bin/python
sys.getdefaultencoding: utf-8
sys.getfilesystemencoding: ascii
locale.getpreferredencoding: ANSI_X3.4-1968
sys.platform: linux
sys.implementation:
name: cpython
'cert' config value: Not specified
REQUESTS_CA_BUNDLE: None
CURL_CA_BUNDLE: None
pip._vendor.certifi.where(): /mnt/dataflash/miniconda3/lib/python3.6/site-packages/pip/_vendor/certifi/cacert.pem
pip._vendor.DEBUNDLED: False
vendored library versions:
CacheControl==0.12.6
colorama==0.4.4
distlib==0.3.3
distro==1.6.0
html5lib==1.1
msgpack==1.0.2 (Unable to locate actual module version, using vendor.txt specified version)
packaging==21.0
pep517==0.12.0
platformdirs==2.4.0
progress==1.6
pyparsing==2.4.7
requests==2.26.0
certifi==2021.05.30
chardet==4.0.0
idna==3.2
urllib3==1.26.7
resolvelib==0.8.0
setuptools==44.0.0 (Unable to locate actual module version, using vendor.txt specified version)
six==1.16.0
tenacity==8.0.1 (Unable to locate actual module version, using vendor.txt specified version)
tomli==1.0.3
webencodings==0.5.1 (Unable to locate actual module version, using vendor.txt specified version)
Compatible tags: 174
cp36-cp36m-manylinux_2_25_armv7l
cp36-cp36m-manylinux_2_24_armv7l
cp36-cp36m-manylinux_2_23_armv7l
cp36-cp36m-manylinux_2_22_armv7l
cp36-cp36m-manylinux_2_21_armv7l
cp36-cp36m-manylinux_2_20_armv7l
cp36-cp36m-manylinux_2_19_armv7l
cp36-cp36m-manylinux_2_18_armv7l
cp36-cp36m-manylinux_2_17_armv7l
cp36-cp36m-manylinux2014_armv7l
cp36-cp36m-linux_armv7l
...
1条答案
按热度按时间ilmyapht1#
这个解决方案很愚蠢。我的USERNAME和PASSWORD环境变量为空/空,因为我在当天早些时候复制了另一个.env文件后,它们不在.env文件中...
使用
-vvv
详细安装pip install -vvv --index-url https://${USERNAME}:${PASSWORD}@pypi.my_domain.com canpy
显示了错误。提示是“403”错误……