Python

  1. Quit python in terminal: type exit()
  2. 安装好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
  1. What does “SyntaxError: Missing parentheses in call to 'print'” mean in Python?

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")

  1. 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就是一个;

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • # Python 资源大全中文版 我想很多程序员应该记得 GitHub 上有一个 Awesome - XXX 系列...
    aimaile阅读 26,634评论 6 427
  • 前言 Python的创始人为Guido van Rossum。1989年圣诞节期间,在阿姆斯特丹,Guido为了打...
    依依玖玥阅读 3,622评论 6 37
  • GitHub 上有一个 Awesome - XXX 系列的资源整理,资源非常丰富,涉及面非常广。awesome-p...
    若与阅读 18,901评论 4 418
  • 环境管理管理Python版本和环境的工具。p–非常简单的交互式python版本管理工具。pyenv–简单的Pyth...
    MrHamster阅读 3,870评论 1 61
  • 荆棘鸟书评 文/蜜桃橘子 非常好看的一本书。 历史背景广阔,三代人的爱情纠葛,虽然内容不少但只想一口气读下去,渴了...
    蜜桃橘子阅读 2,209评论 0 0