记下自己安装库的方法,不然老是找来找去不方便。
- 首先,在setting中找到自己需要导入的package的目录
- 打开cmd进入该目录,命令提示符输入豆瓣镜像源:pip --default-timeout=100 install 库 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com,下载速度飞快。
比如下载matplotlib:pip --default-timeout=100 install matplotlib -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com