[Tutor] trouble installing library
Lolo Lolo
losermeloser at yahoo.com
Wed Apr 24 17:18:33 CEST 2013
>> Microsoft's C/C++ runtime only
>> uses double quotes. So just change it to the following:
>> python -c "import googlemaps"
Thanks this solved the issue, now another issue has been thrown. Just not my day. after the 1st module error happens, they show the correct way to install google maps, i will show there results, then mine.
$ pip install googlemaps
Downloading/unpacking googlemaps
Downloading googlemaps-1.0.2.tar.gz (60Kb): 60Kb downloaded
Running setup.py egg_info for package googlemaps
Installing collected packages: googlemaps
Running setup.py install for googlemaps
Successfully installed googlemaps
Cleaning up...
Here is mine:
(gmapenv) D:\Data\Files Data\virtualenv-1.9.1\scripts\gmapenv>pip instal
l googlemaps
Downloading/unpacking googlemaps
Downloading googlemaps-1.0.2.tar.gz (60kB): 60kB downloaded
Running setup.py egg_info for package googlemaps
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "D:\Data\Files Data\virtualenv-1.9.1\scripts\gmapenv\build\go
oglemaps\setup.py", line 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 "D:\Data\Files Data\virtualenv-1.9.1\scripts\gmapenv\build\google
maps\setup.py", line 18, 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 D:\Data\Fil
es Data\virtualenv-1.9.1\scripts\gmapenv\build\googlemaps
Storing complete log in C:\Users\Lolo\pip\pip.log
The 2 syntax errors look like python 2 vs python 3 errors:
print main.__doc__
The googlemaps package was created but im just not comfortable with the error as it may be incomplete. and i dont know if its wise to go into the file i change it to print(main.__doc__), will there be a lot more errors like these? was googlemaps meant only to be used with python 2 and not 3? If i do change the print statements that caused the errors, do i delete the created googlemaps directory and do it again as the previous one might be incomplete?? can anyone please offer help as to what i should do next
>> Reference: Parsing C++ Command-Line Arguments
>> http://msdn.microsoft.com/en-us/library/17w5ykft%28v=vs.100%29
C++ is behind the windows command line?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130424/1ed1db32/attachment.html>
More information about the Tutor
mailing list