Avatar of jsgambel
jsgambel
 asked on

How do I know if Geopy is installed correctly

Hi all - I'm having trouble with a python web view. The error message is: "Could not import <appname>.views. Error was: No module named geopy.distance"

I'm obviously trying to import geopy. I think I have it installed correctly but I don't know how to tell for sure.

I installed it using easy-install. This is the tail of the log after installation.
#***************
Installing easy_install-script.py script to C:\Python27\Scripts
Installing easy_install.exe script to C:\Python27\Scripts
Installing easy_install.exe.manifest script to C:\Python27\Scripts
Installing easy_install-2.7-script.py script to C:\Python27\Scripts
Installing easy_install-2.7.exe script to C:\Python27\Scripts
Installing easy_install-2.7.exe.manifest script to C:\Python27\Scripts

Installed c:\python27\lib\site-packages\setuptools-0.6c11-py2.7.egg
Processing dependencies for setuptools==0.6c11
Finished processing dependencies for setuptools==0.6c11
Processing geopy-0.93-py2.7.egg
Copying geopy-0.93-py2.7.egg to c:\python27\lib\site-packages
Adding geopy 0.93 to easy-install.pth file

Installed c:\python27\lib\site-packages\geopy-0.93-py2.7.egg
Processing dependencies for geopy==0.93
Finished processing dependencies for geopy==0.93
#***************

There is a geopy.egg file in my Python/Lib/site-packages directory. Any suggestions on how to troubleshoot this? I have python and python\scripts in my path, though I don't think the path is the problem. At a loss as to why it can't import.

Python 2.7
geopy 0.93
Django 1.3
Windows 7

TIA -
Joe
ProgrammingPython

Avatar of undefined
Last Comment
jsgambel

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
jsgambel

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy