如何在conda中安装anaconda中不可用的软件包?(conda:4.7.5,python:3.7.3) [英] How to install packages in conda that are not available in anaconda? (conda:4.7.5, python:3.7.3)

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

问题描述

我想使用conda安装(python)软件包,但说repo.anaconda.com/......中没有提供,我该如何安装?

我尝试安装的特定软件包是 edx-dl (使用代码 conda install edx-dl 链接到github repo ).这段代码与 pip 一起正常工作,而与 conda 一起工作则不行.

例如,在pip中,如果我键入 pip install edx-dl ,则可以在使用不带anaconda的python base时安装软件包.但是现在有了conda,它说它在anaconda回购中不可用.那么,如果可以安装anaconda中没有的软件包,可以安装吗?

因此,概括地说,有什么方法可以使用 conda 下载和安装python软件包,而repo.anaconda.com 中没有这些软件包?

请注意,我不使用基本的python,而是当前使用anaconda.因此,不能使用 pip 安装该软件包.

谢谢!


我收到的错误消息:

(基本)C:\ WINDOWS \ system32> conda安装edx-dl

警告conda.base.context:use_only_tar_bz2(632):由于已安装conda-build,且Conda <3.18.3,因此Conda只能使用旧的.tar.bz2文件格式.更新或删除conda-build以获得较小的下载量和更快的提取速度.收集包元数据(repodata.json):已完成解决环境:失败

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

  • edx-dl

当前频道:

要搜索可能提供conda软件包的替代频道,寻找,导航到

  https://anaconda.org 

,然后使用页面顶部的搜索栏.

解决方案

在终端类型中:

  conda激活< env_name> 

然后:

  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中不可用的软件包?(conda:4.7.5,python:3.7.3)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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