查看pip源:
cat /root/.pip/pip.conf
pip --version
编辑一下pip配置文件:
vi /root/.pip/pip.conf
修改成豆瓣源或者阿里源:
[global]
index-url=https://pypi.douban.com/simple
[install]
trusted-host=pypi.douban.com
强制安装requests:
pip install --ignore-installed requests
Done~
查看pip源:
cat /root/.pip/pip.conf
pip --version
编辑一下pip配置文件:
vi /root/.pip/pip.conf
修改成豆瓣源或者阿里源:
[global]
index-url=https://pypi.douban.com/simple
[install]
trusted-host=pypi.douban.com
强制安装requests:
pip install --ignore-installed requests
Done~