首页 > 编程知识 正文

清华镜像源python安装包,怎么用清华镜像源pytorch库

时间:2023-05-04 23:00:31 阅读:192352 作者:4903

在cmd窗口中输入

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple 库名

或:

pip install 库名 -i https://pypi.tuna.tsinghua.edu.cn/simple

原始网站:https://pypi.python.org/simple

 永久设置方法,同样在cmd窗口中输入:

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

附:

豆瓣镜像源:

pip install SnowNLP -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

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