pip install xxxxxpython
總會遇到安裝失敗,或者下載速度很慢的狀況。這是由於從國外安裝資源包,形成速度慢,那有咩有國內的源呢,有的。linux
國內源:微信
清華:https://pypi.tuna.tsinghua.edu.cn/simple 推薦ide
阿里雲:http://mirrors.aliyun.com/pypi/simple/阿里雲
中國科技大學 https://pypi.mirrors.ustc.edu.cn/simple/spa
華中理工大學:http://pypi.hustunique.com/pyspider
山東理工大學:http://pypi.sdutlinux.org/blog
豆瓣:http://pypi.douban.com/simple/ip
在安裝包時加上命令,如使用清華源:資源
pip install pyspider
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyspider
這樣能夠從清華鏡像中安裝pyspider庫,很方便的,速度也會快上很多。
如想升級pip,出現下圖所示提示:
告訴咱們能夠升級pip了,按照提示輸入:python -m pip install --upgrade pip 便可,可是每每也很慢
這時咱們須要配置鏡像,如豆瓣:python -m pip install --upgrade pip -i http://pypi.douban.com/simple --trusted-host pypi.douban.com 搞定!
友情提示:
如今的你是如何截屏的?QQ or 微信??
win10有着自帶的截屏方式:win+shift+s 便可截屏,快試試吧!