如何在 conda 中安装 anaconda 中不可用的软件包 [英] How to install packages in conda that are not available in anaconda

查看:137
本文介绍了如何在 conda 中安装 anaconda 中不可用的软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 conda 安装一个包(python),但说在 repo.anaconda.com/....... 中不可用,我该如何安装它?>

我尝试安装的特定软件包是 edx-dl (github 存储库的链接)使用代码 conda install edx-dl.此代码适用于 pip,但不适用于 conda.

例如,在 pip 中,如果我输入 pip install edx-dl 能够在我使用没有 anaconda 的 python 基础时安装包.但是现在使用 conda 它说它在 anaconda repo 中不可用.那么如果anaconda中没有的包,可以安装吗?

总而言之,有没有办法使用在 repo.anaconda.com 中没有的 conda 下载和安装 python 包?

请注意,我不使用基础 python,而是目前使用 anaconda.所以,不能使用 pip 来安装那个包.

谢谢!

<小时>

我收到的错误消息:

(base) C:\WINDOWS\system32>conda install edx-dl

警告 conda.base.context:use_only_tar_bz2(632):Conda 被限制为只能使用旧的 .tar.bz2 文件格式,因为您安装了 conda-build,并且它是 <3.18.3.更新或删除 conda-build 以获得更小的下载和更快的提取.收集包元数据(repodata.json):完成解决环境:失败

PackagesNotFoundError:当前渠道不提供以下软件包:

  • edx-dl

当前频道:

要搜索可能提供您正在使用的 conda 软件包的备用频道寻找,导航到

https://anaconda.org

并使用页面顶部的搜索栏.

解决方案

在终端类型:

conda activate 

然后:

pip install edx-dl

将在 conda env 这个库上工作

I want to install a package (of python) using conda, but says not available in repo.anaconda.com/......., how could I install it ?

The specific package that I tried to install is edx-dl (link of the github repo) using the code conda install edx-dl. This code works fine with pip but not with conda.

For example, in pip if I type pip install edx-dl was able to install the package when I was using python base without anaconda. But now with conda it says it is not available in anaconda repo. So if a package that are not available in anaconda, can be installed?

So to generalize, is there any way to download and install packages of python using conda which are not available in repo.anaconda.com?

Note that, I do not use base python, rather currently using anaconda. So, can't use pip to install that package.

Thanks!


Error message that I got:

(base) C:\WINDOWS\system32>conda install edx-dl

WARNING conda.base.context:use_only_tar_bz2(632): Conda is constrained to only using the old .tar.bz2 file format because you have conda-build installed, and it is <3.18.3. Update or remove conda-build to get smaller downloads and faster extractions. Collecting package metadata (repodata.json): done Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  • edx-dl

Current channels:

To search for alternate channels that may provide the conda package you're looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page.

解决方案

in terminal type:

conda activate <env_name>

then:

pip install edx-dl

will work on conda env this library

这篇关于如何在 conda 中安装 anaconda 中不可用的软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆