本文介绍了窗口 pip install scrapy 错误“运行 build_ext 错误:[错误 5]";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎样才能避免这个错误?

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>

推荐答案

Windows 上安装 Scrapy 可能是一场真正的斗争.

Installing Scrapy on Windows can be a real struggle.

这就是为什么 scrapy 文档 建议使用 Anaconda 进行scrapy 安装.如果您使用的是 Windows,我认为您应该尝试一下.

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.

首先,您需要按照此教程安装 Anaconda.

First you need to install Anaconda following this tutorial.

然后你只需要运行这个命令 conda install -c conda-forge scrapy 一切顺利.

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

这篇关于窗口 pip install scrapy 错误“运行 build_ext 错误:[错误 5]";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 08:52