window下安装pyspider老是出错

我用pip install 安装pyspider,在安装到markupsafe时老是提示错误:

reading manifest file 'MarkupSafe.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'MarkupSafe.egg-info\SOURCES.txt'
copying markupsafe\_speedups.c -> build\lib.win32-2.7\markupsafe
running build_ext
building 'markupsafe._speedups' extension
error: [Error 2]

----------------------------------------

Command "C:Python27python.exe -u -c "import setuptools, tokenize;__file__='c:\users\admini~1\appdata\local\temp\pip-build-g3pqj8\MarkupSafe\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('rn', 'n'), __file__, 'exec'))" install --record c:usersadmini~1appdatalocaltemppip-yvoo9a-recordinstall-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:usersadmini~1appdatalocaltemppip-build-g3pqj8MarkupSafe\

我尝试自己下载安装markupsafe也是报类似的错误,请问是什么原因呢

阅读 4.6k
1 个回答

windows下安装pyspider是一件很费心的事情,之前安装过,搞半天才装上结果还是运行的时候出错,后来改在linux上,一切顺利,有可能的话,还是用linux吧

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题