查找软件安装位置
dpkg -S python3 |grep pip search files
dpkg -L python3 |grep pip list files
更换源
http://mirrors.aliyun.com/ubuntu
更换pip源
临时使用:
可以在使用pip的时候在后面加上-i参数,指定pip源
eg: pip install scrapy -i https://mirrors.aliyun.com/pypi/simple/
永久修改:
linux:
修改 ~/.pip/pip.conf (没有就创建一个), 内容如下:
[global]
index-url =https://mirrors.aliyun.com/pypi/simple/
2155

被折叠的 条评论
为什么被折叠?



