Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing module in python with anaconda and jupyter notebook

I've been having a problem with installing modules, and I can't find an exact solution to it anywhere. What I'm trying to do is use anaconda to install a module. When I type into the anaconda command prompt:

pip install imbox

it says it installs. So then i open jupyter notebook by simply using

jupyter notebook

Everything seems ok until I try to

from imbox import Imbox

and I get

No module named imbox

How would I make jupyter notebook include that module?

like image 813
Lucas A. Avatar asked Aug 25 '16 23:08

Lucas A.


1 Answers

Try using the pip that comes with conda, instead of your default pip.

PATH_TO_CONDA_DIR/bin/pip install imbox

In your case:

C:\Users\USERNAME\Anaconda2\bin\pip install imbox

Alternative, install the package again, in the specified location:

pip install --target=C:\Users\USERNAME\Anaconda2\lib\site-packages imbox

like image 74
perfect5th Avatar answered Sep 29 '22 07:09

perfect5th