Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install packages in conda that are not available in anaconda

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:

  • https://repo.anaconda.com/pkgs/main/win-64
  • https://repo.anaconda.com/pkgs/main/noarch
  • https://repo.anaconda.com/pkgs/r/win-64
  • https://repo.anaconda.com/pkgs/r/noarch
  • https://repo.anaconda.com/pkgs/msys2/win-64
  • https://repo.anaconda.com/pkgs/msys2/noarch

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.

like image 395
Rakibul Alam Avatar asked Aug 02 '19 11:08

Rakibul Alam


People also ask

How do I install packages without anaconda?

If a package is not available from conda or Anaconda.org, you may be able to find and install the package via conda-forge or with another package manager like pip. Pip packages do not have all the features of conda packages and we recommend first trying to install any package with conda.

How do I install an external package in anaconda?

Go to Environments tab just below the Home tab and from there we can check what all packages are installed and what is not. It is very easy to install any package through anaconda navigator, simply search the required package, select package and click on apply to install it.


1 Answers

in terminal type:

conda activate <env_name>

then:

pip install edx-dl

will work on conda env this library

like image 103
Kacper Avatar answered Oct 11 '22 00:10

Kacper