python离线安装环境 解决 ERROR: Could not find a version that satisfies the requirement xxx 以及winError[10061]

目录

此篇博客意在提出conda pycharm等安装库报错的解决方案。有以下情况的同学可以进行下面详细阅读:

1.不知道从哪里找到python所需要安装的库。
2.不知道如何pip intall各种库
3.不知道如何解压及安装.tar.gz文件
4.不知道如何对安装时pip的报错进行 debug

  1. pyton各种库的下载地址:https://pypi.org/project/numpy/

只需要把numpy 替换成你想要的库 然后粘贴到浏览器即可。画面如下:

python离线安装环境 解决 ERROR: Could not find a version that satisfies the requirement xxx 以及winError[10061]
在上述搜索栏也可搜索所需要的库名。 紧接着点击红色框里面的 Download files。
python离线安装环境 解决 ERROR: Could not find a version that satisfies the requirement xxx 以及winError[10061]
然后根据自己的安装需求下载.whl文件。如果没有找到想要的版本,则需要点击上图红色框中的Release history中继续寻找。
python离线安装环境 解决 ERROR: Could not find a version that satisfies the requirement xxx 以及winError[10061]

; 2. pip 离线安装python库

将下载好的 .whl文件 放置到anconda 任意一个文件夹,特别注意的是,如果cmd直接进入当前打开的文件夹 ,你需要按住shift +鼠标右击 然后点 在此处打开Powershell窗口进入当前路径。然后直接 键入 pip install xxxx.whl ,完成安装。

python离线安装环境 解决 ERROR: Could not find a version that satisfies the requirement xxx 以及winError[10061]

3 pip安装报错 ERROR/winError[10061] ,由于目标计算机即将拒绝,无法连接时:

当遇到离线安装出现 由于目标计算机即将拒绝,无法连接时 , 错误原因:当前安装库需要依赖库,而你没有安装
解决方案:1.链接网络 然后重试
2.对下图中红色报错的库进行安装 如下图, 白色框是你需要安装的库 红色框是你需要安装的版本号,此处为大于0.2.1都可以安装,将报错所需要安装的库 复制到上述下载地址即可立刻查找,安装方法与上面所讲的方法一直:下载.whl文件然后 pip install xx.whl

python离线安装环境 解决 ERROR: Could not find a version that satisfies the requirement xxx 以及winError[10061]

; 4.python解压及安装.tar.gz文件

首先,需要解压.tar.gz文件,然后将其放在任意文件下 找到setup.py 同样的方法打开所在文件路径的CMD 此时键入 python setup.py install 完成安装。

Original: https://blog.csdn.net/ALiLiLiYa/article/details/126999192
Author: 阿利同学
Title: python离线安装环境 解决 ERROR: Could not find a version that satisfies the requirement xxx 以及winError[10061]

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/757532/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

亲爱的 Coder【最近整理,可免费获取】👉 最新必读书单  | 👏 面试题下载  | 🌎 免费的AI知识星球