Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named 'kmapper' #188

Open
el-burrito1 opened this issue Feb 2, 2020 · 3 comments
Open

No module named 'kmapper' #188

el-burrito1 opened this issue Feb 2, 2020 · 3 comments

Comments

@el-burrito1
Copy link

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
Copy link
Member

sauln commented Feb 3, 2020

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
Copy link
Author

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
Copy link
Member

sauln commented Sep 14, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants