首页 > 用pyenv 管理多个python出现问题

用pyenv 管理多个python出现问题

ljhui@ljhui-NV47H:~ $ pyenv versions
* system (set by /home/ljhui/.pyenv/version)
  anaconda3-4.0.0
ljhui@ljhui-NV47H:~ $ 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 环境中

【热门文章】
【热门文章】