Lucas A.
Lucas A.

Reputation: 99

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?

Upvotes: 5

Views: 9478

Answers (1)

perfect5th
perfect5th

Reputation: 2062

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

Upvotes: 6

Related Questions