- Quit python in terminal: type exit()
- 安裝好python之后,默認已經配置了路徑;cmd - python,就可以進入python模式
download google 代碼 (https://developers.google.com/edu/python/google-python-exercises.zip?hl=zh-CN)
C:\google-python-exercises> python hello.py
Hello World
C:\google-python-exercises> **python hello.py Alice
Hello Alice
This error message means that you are attempting to use Python 3 to follow an example or run a program that uses the Python 2 print
statement:
print "Hello world"
The statement above does not work in Python 3. In Python 3 you need to add parentheses around the value to be printed:
print("Hello world")
- download pywin32 from https://sourceforge.net/projects/pywin32/files/pywin32/Build%20220/
pywin32的版本需要match python的版本;我裝的是32bit python3.5, 所以對應的pywin32版本是:pywin32-220.win32-py3.5.exe
- 檢查版本號:pip --version
- 安裝Scrapy: pip install Scrapy 出錯
替代方案:
Anaconda
Using Anaconda is an alternative to using a virtualenv and installing with pip.
我發現有很多的free package manager, Anaconda就是一個;