Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing package not found in conda

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?

like image 737
Alex T Avatar asked May 16 '17 19:05

Alex T


People also ask

Where is conda installing packages?

Conda installs packages into the anaconda/pkgs directory. If conda cannot find the file, try using an absolute path name instead of a relative path name. Installing packages directly from the file does not resolve dependencies.

Where is Python package installed in conda?

When you build and install python packages from source (using distutils, probably by executing python setup.py install ), you will find the installed modules in site-packages by default. In this case you have two places: /anaconda3/lib/python3. 7/site-packages/ and /anaconda3/envs/[name env]/lib/python3.

How enable conda install?

To activate your Conda environment, type source activate <yourenvironmentname> . Note that conda activate will not work on Discovery with this version. To install a specific package, type conda install -n <yourenvironmentname> [package] . To deactivate the current, active Conda environment, type conda deactivate .


2 Answers

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

It should work.

like image 78
Adrien Blanquer Avatar answered Sep 23 '22 18:09

Adrien Blanquer


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

It worked...

like image 26
vinsent paramanantham Avatar answered Sep 20 '22 18:09

vinsent paramanantham