Installing package not found in conda

2019-06-15 07:38发布

问题:

I'm using python 3.6 as anaconda, and im trying to install python-twitter package, but there is no package compatible from conda manager. How can i download the package outside conda manager in order to use it later with jupyter notebook?

回答1:

You can install pip in your conda env and then run pip install python-twitter.

It should work.



回答2:

Ubuntu:/$ which pip
/home/superadmin/anaconda2/bin/pip
Ubuntu:/$ /home/superadmin/anaconda2/bin/pip install apache-beam

It worked...



回答3:

If you prefer conda packages over pip where possible, check other channels first with:

conda install [--channel | -c] conda-forge

Search multiple channels:

conda search -c bioconda -c conda-forge

Add a channel to the default search (see docs for managing precedence order):

conda config --add channels conda-forge

Some of the popular channels are listed in Explanation of different conda channels