python安装环境的心得体会第一篇 镜像源


正当入门python,第一关就是安装python,pycharm,这个倒是也还好,安装并不是难事,然后我就去模仿其他视频里面的老师进行学习,把代码原封不动的输进去,结果发现各种错误,当然把错误内容复制粘贴到百度也可以解决,提示下载各种包,我就复制粘贴到命令行,发现安装出错

后来才知道是镜像源的问题

pip install XXX (利用的是原先系统里面自带的镜像源)

pip install pyquery -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

(使用了豆瓣镜像源)

-i http://pypi.douban.com/simple --trusted-host pypi.douban.com

往往国内的镜像源下载起来更快,更方便

国内的其他镜像源

清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/

阿里云 http://mirrors.aliyun.com/pypi/simple/

中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/

豆瓣(douban) http://pypi.douban.com/simple/

中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/

相关