pip安裝使用鏡像+ pip安裝解決use cached

問題:使用國內鏡像linux

使用鏡像的參考連接:ui

http://topmanopensource.iteye.com/blog/2004853spa

舉例:blog

pip install  -i http://pypi.hustunique.org/simple --trusted-host  pypi.hustunique.org  -r requirements.txtip

鏡像源爲:http://pypi.hustunique.org/ rem

注意:最後面加上了 simpleit

須要安裝的軟件都在requirements.txt 文件中pip

 

問題:use cachedio

 

有時侯,安裝會出現下面的狀況,特別是你不是第一次安裝的時候,require

 

『Collecting asn1crypto==0.22.0 (from -r .\requirements.txt(line 1))

    Using cached asn1crypto-o.22.0-py2.py3-none-any.whl』

 

解決方法:

 

能夠參考連接:https://stackoverflow.com/questions/9510474/removing-pips-cache

 

pip install  -i http://pypi.sdutlinux.org/simple --trusted-host pypi.sdutlinux.org -r requirements.txt --no-cache-dir

加上--no-cache-dir的命令就能夠了

相關文章
相關標籤/搜索