[英]Trying to install a Scitools Python pkg via 'pip install' but getting error
[英]Getting syntax error when trying to install googlemaps module in python via pip
我是python的初學者。 我正在嘗試在python中安裝Google Maps模塊,但出現語法錯誤。 下面是錯誤消息。 請幫忙。
(gmapenv) C:\Python\Virtual Environment\gmapenv\Scripts>pip install GoogleMaps
Downloading/unpacking GoogleMaps
Running setup.py egg_info for package GoogleMaps
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "C:\Python\Virtual Environment\gmapenv\build\GoogleMaps\setup.py", li
ne 18, in <module>
import googlemaps
File "googlemaps\googlemaps.py", line 471
print main.__doc__
^
SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "C:\Python\Virtual Environment\gmapenv\build\GoogleMaps\setup.py", line 1
8, in <module>
import googlemaps
File "googlemaps\googlemaps.py", line 471
print main.__doc__
^
SyntaxError: invalid syntax
----------------------------------------
Command python setup.py egg_info failed with error code 1 in C:\Python\Virtual E
nvironment\gmapenv\build\GoogleMaps
Storing complete log in C:\Users\Vimal\pip\pip.log
似乎您嘗試使用python3運行python2代碼。 嘗試重新安裝python: https : //www.python.org/download/releases/2.7/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.