linux - 用pyenv 管理多个python出现问题

 手机用户2502873151 发布于 2022-10-28 12:40
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没出问题。谁来解答一下,谢谢

2 个回答
  • 先在命令行里试下执行 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 环境中

    2022-10-29 16:03 回答
  • 恩,另外推荐把anaconda安装包下到~/.pyenv/cache后安装,不用curl了就。清华tuna有anaconda的镜像,推荐一个。

    2022-10-29 16:06 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有