镜像加速安装Python库

编程入门 行业动态 更新时间:2024-10-24 06:32:29

<a href=https://www.elefans.com/category/jswz/34/1770431.html style=镜像加速安装Python库"/>

镜像加速安装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库

本文发布于:2024-03-06 01:59:10,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1714056.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:镜像   Python

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!