首页 > 编程知识 正文

下载pip,pip install 清华镜像

时间:2023-05-04 17:41:03 阅读:170266 作者:1145

临时使用:

使用pip时可以添加参数- I https://pypi.tuna.Tsinghua.edu.cn/simple

例如pip install-I https://pypi.tuna.Tsinghua.edu.cn/simplegevent。 现在从清华端的镜像安装gevent库。

pip install-I https://pypi.tuna.Tsinghua.edu.cn/simplenumpyopencv-pythonlmdbtensorboardx 3358 www.Sina.com /

在linux下,将~/.pip/pip.conf (如果没有则创建一个)、index-url修改为tuna。 内容如下。

在[ global ] index-URL=https://pypi.tuna.Tsinghua.edu.cn/simple windows下,直接在user目录中创建pip目录。 示例: c:_sers_xx

[ global ] index-URL=https://pypi.tuna.Tsinghua.edu.cn/simple来源: https://blog.csdn.net/weixin _ 40240670/arina

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。