scikit-tda / kepler-mapper

Kepler Mapper: A flexible Python implementation of the Mapper algorithm.
https://kepler-mapper.scikit-tda.org
MIT License
627 stars 181 forks source link

No module named 'kmapper' #188

Open el-burrito1 opened 4 years ago

el-burrito1 commented 4 years ago

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 4 years ago

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.

el-burrito1 commented 4 years ago

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 4 years ago

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.