镜像加速安装Python库"/>
镜像加速安装Python库
Windows+R-->输入cmd进入命令行;
使用命令:pip install 插件名 -i 国内镜像地址
常用镜像:
1)/ 阿里云2)/ 中国科技大学
3) / 豆瓣
4) / 清华大学
5) / 中国科学技术大学
例1,安装opencv-python
C:\Users\Mr.Yang>pip install opencv-python -i / --trusted-host mirrors.aliyun
显示如下:
Looking in indexes: /
Collecting opencv-python
Downloading .2.0.34-cp37-cp37m-win_amd64.whl (33.0MB)
|████████████████████████████████| 33.1MB 1.1MB/s
Requirement already satisfied: numpy>=1.14.5 in d:\anaconda\anaconda\lib\site-packages (from opencv-python) (1.16.5)
Installing collected packages: opencv-python
Successfully installed opencv-python-4.2.0.34
例2,安装pyheatmap
C:\Users\Mr.Yang>pip install pyheatmap -i --trusted-host pypi.douban
显示如下:
Looking in indexes:
Collecting pyheatmap
Downloading .1.12.tar.gz
Building wheels for collected packages: pyheatmap
Building wheel for pyheatmap (setup.py) … done
Created wheel for pyheatmap: filename=pyheatmap-0.1.12-cp37-none-any.whl size=4866 sha256=d757b6c481b7cbe9728e5938e16295d35332682fb25a78f4ad0fac6493a9a6f1
Stored in directory: C:\Users\Mr.Yang\AppData\Local\pip\Cache\wheels\b4\dd\9a\aad4ca5377466bbe318b9ac750e29a703bbe12c920497f7cab
Successfully built pyheatmap
Installing collected packages: pyheatmap
Successfully installed pyheatmap-0.1.12
实例3, 安装gpy
C:\Users\Mr.Yang>pip install gpy -i / --trusted-host mirrors.aliyun
显示如下:
Looking in indexes: /
Collecting gpy
Downloading .9.9-cp37-cp37m-win_amd64.whl (1.5MB)
|████████████████████████████████| 1.5MB 2.2MB/s
Collecting paramz>=0.9.0 (from gpy)
Downloading .9.5.tar.gz (71kB)
|████████████████████████████████| 71kB 4.8MB/s
Requirement already satisfied: six in d:\anaconda\anaconda\lib\site-packages (from gpy) (1.12.0)
Requirement already satisfied: scipy>=0.16 in d:\anaconda\anaconda\lib\site-packages (from gpy) (1.3.1)
Requirement already satisfied: numpy>=1.7 in d:\anaconda\anaconda\lib\site-packages (from gpy) (1.16.5)
Requirement already satisfied: decorator>=4.0.10 in d:\anaconda\anaconda\lib\site-packages (from paramz>=0.9.0->gpy) (4.4.0)
Building wheels for collected packages: paramz
Building wheel for paramz (setup.py) … done
Created wheel for paramz: filename=paramz-0.9.5-cp37-none-any.whl size=102557 sha256=6438583834b4ab523b2a5e1f2d323053cef2a537f8bf811daaf233f5f466020e
Stored in directory: C:\Users\Mr.Yang\AppData\Local\pip\Cache\wheels\50\da\87\4463097419c4eb66578fbb68fd332b0864bad93a9b1a257ab2
Successfully built paramz
Installing collected packages: paramz, gpy
Successfully installed gpy-1.9.9 paramz-0.9.5
更多推荐
镜像加速安装Python库
发布评论