pip install -i https://pypi.tuna.tsinghua.edu.cn/simple package-name
注意,simple
不能少, 是 https
而不是 http
修改
~
/.config/pip/pip.conf
(Linux)
C:\Users\xxxxx\pip\pip.ini
(Windows 10)
$HOME/Library/Application Support/pip/pip.conf
(macOS)(没有就创建一个)
修改 index-url
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
pip 和 pip3 并存时,只需修改 ~/.pip/pip.conf
或者终端输入
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
本文地址:https://blog.csdn.net/DragonGirI/article/details/107143023
如对本文有疑问, 点击进行留言回复!!
Linux C编程学习笔记(二)暨混乱弥补知识之pragma与字节对齐
荐 opencv学习笔记22:傅里叶变换,高通滤波,低通滤波
[推荐]Linux入门系列(二)文件查看的多种方式(提升效率)
网友评论