window 7下安装scrapy

来源:互联网 发布:中国电信网络资源管理 编辑:程序博客网 时间:2024/06/07 02:59

想在window7下安装一个scrapy,折腾了一个星期各种报错,开始报错需要安装Visual Studio,

安装了Visual Studio开始报错缺少basetsd.h,被折腾的怀疑人生,重装系统报错

Unable to find vcvarsall.bat,搜索这个报错终于在
http://stackoverflow.com/questions/2817869/error-unable-to-find-vcvarsall-bat
找到了解决方法
在http://www.lfd.uci.edu/~gohlke/pythonlibs/找到了twisted的兼容包

附:学到了查看python安装路径的方法:
import sys
print(sys.path)
***  is not a supported wheel on this platform的解决方法
C:\>Python
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18:55) [MSC v.1900 64 bit (AM
D64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pip
>>> print(pip.pep425tags.get_supported())
[('cp35', 'cp35m', 'win_amd64'), ('cp35', 'none', 'win_amd64'), ('py3', 'none',
'win_amd64'), ('cp35', 'none', 'any'), ('cp3', 'none', 'any'), ('py35', 'none',
'any'), ('py3', 'none', 'any'), ('py34', 'none', 'any'), ('py33', 'none', 'any')
, ('py32', 'none', 'any'), ('py31', 'none', 'any'), ('py30', 'none', 'any')]

0 0
原创粉丝点击