windows - python 2.7 cannot import geocoder library -
python 2.7.10 on win32. windows 8.1
used pip install geocoder library https://pypi.python.org/pypi/geocoder/1.8.0
get error when try , import library
>>> import geocoder traceback (most recent call last): file "<interactive input>", line 1, in <module> file "c:\python27\arcgis10.4\lib\site-packages\geocoder\__init__.py", line 36, in <module> geocoder.api import get, yahoo, bing, geonames, mapquest, google, mapbox # noqa file "c:\python27\arcgis10.4\lib\site-packages\geocoder\api.py", line 29, in <module> geocoder.freegeoip import freegeoip file "c:\python27\arcgis10.4\lib\site-packages\geocoder\freegeoip.py", line 6, in <module> import ratelim file "c:\python27\arcgis10.4\lib\site-packages\ratelim\__init__.py", line 6, in <module> decorator import decorator importerror: no module named decorator >>> i thought install of decorator library fix situtation library installed
c:\python27\arcgis10.4\scripts>pip install decorator requirement satisfied: decorator in c:\python27\arcgis10.4\lib\site-packages update
c:\users\rizagha>python --version python 2.7.10 c:\users\rizagha>python python 2.7.10 (default, may 23 2015, 09:44:00) [msc v.1500 64 bit (amd64)] on win32 type "help", "copyright", "credits" or "license" more information. >>> decorator import decorator traceback (most recent call last): file "<stdin>", line 1, in <module> importerror: no module named decorator something may complicating have python 32 bit , 64 bit installed via arcgis...
try running following command install module
[root@server] python -m pip install decorator this should install module python library of interpreter starts when run python command
then try start interpreter again , try import module (assuming doesn't it's satisfied)
[root@server] python >> decorator import decorator >> if it's satisfied, can try uninstall using pip , reinstall explicitly specifying python -m command
[root@server] pip uninstall decorator [root@server] python -m pip install decorator then can check see if module available in default interpretor
[root@server] python >> decorator import decorator >>
Comments
Post a Comment