pip install XXX -i https://pypi.tuna.tsinghua.edu.cn/simple
下载时换成清华源,一般都十几M每秒
pip install pandas -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
换成豆瓣源,并且信任该地址
感谢小伙伴点赞关注,后续会更新其他实用技巧
===================================================
零基础怎么用:
打开命令行终端,输入python,想下载神码库,再输入上面的话。例如要下载numpy
pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple