cannot import geopy in jupyter notebook after using pipenv in project repo
See original GitHub issueI am using pipenv to create my virtual env within my project repo and then installing the packages I am using. I am having problems importing geopy
from within jupyter notebook after installing it using pipenv. Using pipenv graph
confirms that geopy is indeed installed, but then after opening a jupyter notebook from within the pipenv shell
I get ImportError: No module named geopy
when trying to import geopy. I was able to get it working by specifying the version of geopy to install. Now I am having the problem with haversine
even though I tried doing what I did for geopy and I added a specific version to install.
– | –
Describe your environment
- macOS Sierra 10.12.5
- python version: 2.7.13
- Pipenv version: 8.2.7
Expected result
Describe what you expected.
Actual result
When possible, provide the verbose output (--verbose
), especially for locking and dependencies resolving issues.
Steps to replicate
Provide the steps to replicate (which usually at least includes the commands and the Pipfile).
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
@jillianhade Thanks for providing that info with a quick turnaround! It looks like you aren’t installing
jupyter
in your virtualenv. We aren’t settingPYTHON_PATH
in the subshell or anything like that, so you will have to just include jupyter in yourPipfile
, runpipenv install
again, and then jump down into the shell and see if it works.Glad it helped!