[email protected]:~ $ pyenv versions
* system (set by /home/ljhui/.pyenv/version)
anaconda3-4.0.0
[email protected]:~ $ pyenv install -v anaconda2-4.0.0
Downloading Anaconda2-4.0.0-Linux-x86_64.sh...
/tmp/python-build.20160508021112.7869 ~
pyenv: curl: command not found
The `curl' command exists in these Python versions:
anaconda3-4.0.0
-> https://repo.continuum.io/archive/Anaconda2-4.0.0-Linux-x86_64.sh
pyenv: curl: command not found
The `curl' command exists in these Python versions:
anaconda3-4.0.0
error: failed to download Anaconda2-4.0.0-Linux-x86_64.sh
BUILD FAILED (Ubuntu 16.04 using python-build 20160422-1-ga8664a2)
如圖,為何再安裝另一個版本的anaconda會失敗?提示curl怎麼回事,安裝那個anaconda3沒出問題。誰來解答一下,謝謝
恩,另外推薦把anaconda安裝包下到
~/.pyenv/cache
後安裝,不用
curl
了就。清華tuna有anaconda的鏡像,推薦一個。
先在指令行裡試下執行 curl 指令看能不能執行?
如果不能,安裝一個應該就行了
如果能,那就試試
pyenv shell anaconda3-4.0.0
把目前運作環境切換到 anaconda3 上再運作上面的指令。
The `curl' command exists in these Python versions:
anaconda3-4.0.0
這句的意思應該是
目前環境下找不到 curl(這個是用來下載下傳檔案的工具),這個工具存在于 anaconda3-4.0.0 環境中