question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cannot import geopy in jupyter notebook after using pipenv in project repo

See original GitHub issue

I 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
  1. macOS Sierra 10.12.5
  2. python version: 2.7.13
  3. 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:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
techalchemycommented, Nov 2, 2017

@jillianhade Thanks for providing that info with a quick turnaround! It looks like you aren’t installing jupyter in your virtualenv. We aren’t setting PYTHON_PATH in the subshell or anything like that, so you will have to just include jupyter in your Pipfile, run pipenv install again, and then jump down into the shell and see if it works.

0reactions
techalchemycommented, Nov 2, 2017

Glad it helped!

Read more comments on GitHub >

github_iconTop Results From Across the Web

failure to import geopy in jupyter notebook after using pipenv ...
I am using pipenv to install packages and create my virtual environment within my project repo. I am able to install geopy and...
Read more >
Installation — GeoPandas 0.12.2+0.gefcb367.dirty ...
To install GeoPandas and all its dependencies, we recommend to use the conda package manager. This can be obtained by installing the Anaconda...
Read more >
plotly · PyPI
An open-source, interactive data visualization library for Python.
Read more >
Build failed using pipenv - Binder - Jupyter Community Forum
I have a notebook available in a git repo here (5d95b). The repository includes both Pipfile and Pipfile.lock which I understand should be ......
Read more >
Getting error while trying to run this command " pipenv install ...
Creating a virtualenv for this project… Using /usr/local/opt/python/bin/python3.6 (3.6.4) to create virtualenv… ⠋Traceback (most recent call last): File ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found