linux - 用pyenv 管理多个python出现问题
伊谢尔伦
伊谢尔伦 2017-04-17 18:00:32
[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没出问题。谁来解答一下,谢谢

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

全部回复(2)
伊谢尔伦

恩,另外推荐把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 环境中

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号