Open el-burrito1 opened 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.
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:
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.
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:
Expected behavior No error.