window pip install scrapy error “running build_ext error: [Error 5]”

女生的网名这么多〃 提交于 2019-12-11 14:53:24

问题


How can I avoid this error?

    running build_ext
    error: [Error 5]

    ----------------------------------------
Command "C:\Python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\
\users\\admini~1\\appdata\\local\\temp\\pip-build-zc67ii\\Twisted\\setup.py';f=g
etattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.c
lose();exec(compile(code, __file__, 'exec'))" install --record c:\users\admini~1
\appdata\local\temp\pip-pxb6xl-record\install-record.txt --single-version-extern
ally-managed --compile" failed with error code 1 in c:\users\admini~1\appdata\lo
cal\temp\pip-build-zc67ii\Twisted\

C:\Users\Administrator>

回答1:


Installing Scrapy on Windows can be a real struggle.

That's why the scrapy documentation recommands to use Anaconda for the scrapy installation. I think you should give it a try if you are working on Windows.

First you need to install Anaconda following this tutorial.

Then you just need to run this command conda install -c conda-forge scrapy and you are good to go.



来源:https://stackoverflow.com/questions/44415065/window-pip-install-scrapy-error-running-build-ext-error-error-5

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!