
- 查看python版本。
- 在
http://www.lfd.uci.edu/~gohlke/pythonlibs/,搜索Lxml、Twisted、Scrapy并下载对应版本的库。 - 依次安装这几个库。
1
2
3pip install lxml-4.2.5-cp36-cp36m-win_amd64.whl
pip3 install Twisted-18.7.0-cp36-cp36m-win_amd64.whl
pip3 install Scrapy-1.5.1-py2.py3-none-any.whl - 下载pywin32相应版本并安装。
1
pip3 install pywin32-224-cp36-cp36m-win_amd64.whl
安装pywin32出现–Python version 3.3 required, which was not found in the registry
python3运行一下代码:
1 |
from __future__ import print_function |
python2执行以下代码:
1 |
# script to register Python 2.0 or later for use with win32all |




近期评论