5

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?

edwinksl
  • 6,569
  • 3
  • 28
  • 34
Lucas A.
  • 81
  • 2
  • 7
  • have you tried using conda to install the module instead? conda install imbox? Could be that pip is installing to your base python site-packages, but jupyter is using a different python kernel. – perfect5th Aug 25 '16 at 23:31
  • I did, but conda doesn't include imbox. – Lucas A. Aug 25 '16 at 23:34
  • Where does pip say it is installing the package? Does it match the location of your conda installation? – perfect5th Aug 25 '16 at 23:35
  • Well since I already installed it at some point before i restarted it, so all it says is: Requirement already satisfied (use --upgrade to upgrade): imbox in c:\python27\l ib\site-packages Requirement already satisfied (use --upgrade to upgrade): six in c:\python27\lib \site-packages (from imbox) You are using pip version 8.1.1, however version 8.1.2 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' comm and. – Lucas A. Aug 25 '16 at 23:37
  • How would I change the location from c:\python27\l ib\site-packages to C:\Users\USERNAME\Anaconda2\Lib\site-packages – Lucas A. Aug 25 '16 at 23:38

1 Answers1

6

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

perfect5th
  • 1,714
  • 16
  • 17