scikit-tda/kepler-mapper

No module named 'kmapper'

el-burrito1 opened this issue · 3 comments

Describe the bug
After sudo pip install kmapper I have tried to run in jupyter notebooks "import kmapper as km" but receive the following error:

ModuleNotFoundError: No module named 'kmapper'

To Reproduce
Steps to reproduce the behavior:

  1. install kmapper through pip
  2. open jupyter-notebook
  3. try "import kmapper as km"
  4. See error

Expected behavior
No error.

sauln commented

Is Jupyter running from the same environment that kmapper was installed into?

To make sure kmapper installs in the jupyer environment, you can fun !pip install kmapper in the Jupyter notebook. Note the ! in front of the command.

I used sudo pip install kmapper originally.

When I ran !pip install kmapper it says requirements already satisfied, but still getting the same error when I try to import kmapper. I'm attaching a screenshot:

Screen Shot 2020-02-03 at 12 26 19 AM

sauln commented

It looks like pip is pointing to Python 2.7. You might be running Jupyter under a 3.X version so would possibly need to install the package with pip3 install kmapper so it can be found in the right place.