安装第三方库

方法一:更新当前pip为最新版,确定虚拟环境和设置环境中的pip是否为同一版本。

1)\Scripts⇨cmd⇨pip --version

2)Settings⇨Project Interpreter

方法二:本地下载

1)安装wheel库

  \Scripts⇨cmd⇨pip install wheel

2)将相应库的wheel文件下载到本地

  a.各种wheel文件

    https://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy各种.whl文件

    https://pypi.tuna.tsinghua.edu.cn/simple清华镜像中各类.whl文件

  b.查看设备适合的wheel文件版本

    \Scripts⇨cmd⇨python -m pip debug --verbose

3)用命令行窗口安装相应库

  \Scripts⇨cmd⇨pip install ***.whl

 

------------恢复内容结束------------

posted on 2022-04-12 15:10  柒个月  阅读(75)  评论(0)    收藏  举报