pip安装报错:No such file or directory ‘conda-forge‘ 没有那个文件或目录 ‘conda-forge‘

原文链接

使用pip安装出现报错:

No such file or directory ‘conda-forge’ 没有那个文件或目录 ‘conda-forge’

可以从conda-forge清单中安装的指定Python扩展:

pip install fire -c conda-forge

如果出现以下问题:

ERROR: Could not open requirements file: [Errno 2] No such file or directory: ‘conda-forge’

搜一下版本列表:

conda search fire -c conda-forge

出现版本信息:

Loading channels: done
# Name                  Version           Build  Channel
fire                      0.1.1          py27_0  conda-forge
fire                      0.1.1          py27_1  conda-forge
fire                      0.1.1          py35_0  conda-forge
fire                      0.1.1          py35_1  conda-forge
fire                      0.1.1          py36_1  conda-forge
fire                      0.1.2            py_0  conda-forge
fire                      0.1.3            py_0  conda-forge
fire                      0.1.3            py_1  conda-forge

选择要安装的版本,例如 :fire 0.1.3 py_0 conda-forge:

进行安装:

conda install fire=0.1.3 -c conda-forge

 
 

学习更多编程知识,请关注我的公众号:

代码的路

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
根据引用[1]中提供的信息,你可以尝试删除conda-forge的镜像源并重新创建。具体操作是在conda的配置文件中删除以下内容: ``` channels: - https://mirrors.ustc.edu.cn/anaconda/pkgs/main/ - https://mirrors.ustc.edu.cn/anaconda/pkgs/free/ - https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/ show_channel_urls: true ``` 然后,将配置文件修改为以下内容: ``` channels: - https://mirrors.ustc.edu.cn/anaconda/pkgs/main/ - https://mirrors.ustc.edu.cn/anaconda/pkgs/free/ show_channel_urls: true ``` 这样做可以删除conda-forge的镜像源并重新创建成功。 另外,根据引用[2]中提供的信息,你遇到的问题可能是由于安装conda导致的。conda会将系统原有的软连接/usr/bin/python3重新链到python3.6,而系统原有的/usr/bin/python3软连接指向python3.6,所需的模块依赖都在python3.6的pip管理下。解决这个问题的方法是重新设置python解释器的应用和依赖。 最后,根据引用[3]中提供的信息,你可以尝试修改conda的配置文件,将镜像源修改为清华大学的镜像源。具体操作是将以下内容添加到配置文件中: ``` channels: - defaults show_channel_urls: true default_channels: - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free custom_channels: conda-forge: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud msys2: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud bioconda: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud menpo: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud pytorch: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud simpleitk: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud ``` 这样做可以将镜像源修改为清华大学的镜像源。 综上所述,你可以尝试删除conda-forge的镜像源并重新创建、重新设置python解释器的应用和依赖,以及修改镜像源为清华大学的镜像源来解决你遇到的问题。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

代码的路

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值