首先
pip是安装Python后就有了的,可以在命令行中用pip –version查询坂本
然后
换源
清华源
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
阿里源
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
腾讯源
pip config set global.index-url http://mirrors.cloud.tencent.com/pypi/simple
豆瓣源
pip config set global.index-url http://pypi.douban.com/simple/
换回默认源
pip config unset global.index-url
其次
pip install xxx
不能用的话改成
pip3 install xxx
最后
pip下载的包路径: Python安装目录/Lib/site-packages/