码迷,mamicode.com
首页 > 其他好文 > 详细

pip使用清华源安装软件

时间:2020-11-16 13:42:27      阅读:6      评论:0      收藏:0      [点我收藏+]

标签:tun   pytho   index   config   install   glob   pen   ref   软件   

1.临时使用

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package

如:安装cv2—— pip install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python

2.永久使用

1 pip install pip -U
2 pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

参考:https://www.cnblogs.com/missjade/p/12992038.html

pip使用清华源安装软件

标签:tun   pytho   index   config   install   glob   pen   ref   软件   

原文地址:https://www.cnblogs.com/dLarger/p/13955326.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!