1. 程式人生 > >pip 更換國內鏡像

pip 更換國內鏡像

lob home 鏡像 index tro and 地址 使用 目錄

更換pip源到國內鏡像

   阿裏雲 http://mirrors.aliyun.com/pypi/simple/ 
  中國科技大學 https://pypi.mirrors.ustc.edu.cn/simple/ 
  豆瓣(douban) http://pypi.douban.com/simple/ 
  清華大學 https://pypi.tuna.tsinghua.edu.cn/simple/ 
  中國科學技術大學 http://pypi.mirrors.ustc.edu.cn/simple/

註意後面要有simple目錄!!!

臨時使用:
可以在使用pip的時候在後面加上-i參數,指定pip源

pip install scrapy -i https://pypi.tuna.tsinghua.edu.cn/simple

永久修改:

window:創建或者修改在%HOMEPATH%\pip\pip.ini

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple

怎麽查看機器的%HomePath%

技術分享

這樣便可以直接打開對應的文件夾

技術分享

本機win7,地址就上面。

================================================================================

pip安裝模塊:

λ pip install lxml
λ pip install pandas
λ pip install tushare

http://blog.csdn.net/chenghuikai/article/details/55258957

pip 更換國內鏡像