The first time I saw Python was attracted, well, in front of the Linux downgrade tried a few small pieces of code. Recently work under Windows, too lazy to change to Unbuntu, so want to install Python under win.
I didn't know what to do with Python before, but there are so few applications for Python Ide,python (command line). However, hitting Python under CMD does not respond and cannot execute. py file, Balabala ...
So solve these two problems first:
1. Add path,path=%path%;d Ir_to_my_python
2, add executable file suffix, pathext=%pathext%;. PY;. PYM
In addition, in order for import to find your third party lib, you also need to set the variable pythonpath=%pythonpath%;d ir_to_my_lib
Then try to install google-api-client again, but say import setuptools failed, so you need to install Setuptools first. Over here:
Https://pypi.python.org/pypi/setuptools
I use 0.7.3 version, read the Setuptools document that the installation script under Win is ez_setup.py. Execute it. Note that because the installation script is going to modify the contents of the C drive, you need to right-click Run as Administrator, or run cmd as Administrator, and then CD to the Setuptools directory to execute the script.
And then it became.
Learn Python by whim