300字范文,内容丰富有趣,生活中的好帮手!
300字范文 > python3 pip3 安装包报错 Could not find a version that satisfies the requirement 解决方法

python3 pip3 安装包报错 Could not find a version that satisfies the requirement 解决方法

时间:2018-07-14 17:41:47

相关推荐

python3 pip3 安装包报错 Could not find a version that satisfies the requirement 解决方法

现象:

[root@e45b79f0cd70 Python-3.9.0]# pip3 install pycryptodomeLooking in indexes: /simple/ERROR: Could not find a version that satisfies the requirement pycryptodome (from versions: none)ERROR: No matching distribution found for pycryptodome[root@e45b79f0cd70 Python-3.9.0]#

原因:pip3 镜像源问题 更换镜像源 ,当前使用的镜像源/simple/更换为https://pypi.mirrors./simple/

解决方法:

mkdir -p /$HOME/.pip/ && echo -e "[global]\nindex-url = https://pypi.mirrors./simple/\n" > /$HOME/.pip/pip.conf && pip3 install pycryptodome

执行输出如下:

[root@e45b79f0cd70 Python-3.9.0]# mkdir -p /$HOME/.pip/ && echo -e "[global]\nindex-url = https://pypi.mirrors./simple/\n" > /$HOME/.pip/pip.conf && pip3 install pycryptodomeLooking in indexes: https://pypi.mirrors./simple/Collecting pycryptodomeDownloading https://mirrors./pypi/web/packages/ad/16/9627ab0493894a11c68e46000dbcc82f578c8ff06bc2980dcd016aea9bd3/pycryptodome-3.10.1-cp35-abi3-manylinux_x86_64.whl (1.9 MB)|████████████████████████████████| 1.9 MB 1.4 MB/sInstalling collected packages: pycryptodomeSuccessfully installed pycryptodome-3.10.1WARNING: You are using pip version 20.2.3; however, version 21.1.1 is available.You should consider upgrading via the '/opt/python3/bin/python3.9 -m pip install --upgrade pip' command.[root@e45b79f0cd70 Python-3.9.0]#

pip3 镜像源参考 :《python3 pip 更换国内 pypi 镜像 源》/whatday/article/details/105431658

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。