例如要安裝 boost-1.59版本,由於在默認源中沒有,咱們指定了特定源進行安裝python
conda install -c menpo dlib=boost-1.59
而後下載包時,由於網絡問題,沒法下載,報告以下錯誤。linux
CondaError: CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/menpo/linux-64/boost-1.59.0-py27_0.tar.bz2> Elapsed: - An HTTP error occurred when trying to retrieve this URL. HTTP errors are often intermittent, and a simple retry will get you on your way.
這時咱們能夠使用上面錯誤中獲得的這個地址:git
https://conda.anaconda.org/menpo/linux-64/boost-1.59.0-py27_0.tar.bz2
用這個地址在國外機器下載下來, 而後傳到要安裝的機器上。把這個安裝包放到anaconda存放包的目錄下,如:shell
~/anaconda3/pkgs/
這個目錄下。而後執行命令:網絡
conda install --use-local boost-1.59.0-py27_0.tar.bz2
python setup.py pip install