Scrapy安装(需要Microsoft Visual C ++ 14.0) [英] Scrapy Installation (Microsoft Visual C++ 14.0 is required)

查看:206
本文介绍了Scrapy安装(需要Microsoft Visual C ++ 14.0)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几天来,我一直在尝试通过命令pip install scrapy安装scrapy.

I have been trying to install scrapy for days now through the command, pip install scrapy.

下载要求后,我收到此错误代码.

After downloading the requirements, I am getting this error code.

error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\pancore builders\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\PANCORE BUILDERS\\AppData\\Local\\Temp\\pip-install-h2e9etct\\Twisted\\setup.py'"'"'; __file__='"'"'C:\\Users\\PANCORE BUILDERS\\AppData\\Local\\Temp\\pip-install-h2e9etct\\Twisted\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\PANCORE BUILDERS\AppData\Local\Temp\pip-record-3qfphtaw\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\pancore builders\appdata\local\programs\python\python38\Include\Twisted' Check the logs for full command output.

我读过有关由Microsoft安装Visual Code的信息,但即使如此,它仍然对我不起作用.

I read about installing Visual Code by Microsoft, but even then it is still not working for me.

可能是什么问题?

推荐答案

该错误说明了所有内容.您必须下载 Microsoft Visual C ++生成工具,以摆脱此错误.您可以从

The error says everything. You have to download Microsoft Visual C++ Build Tools for get rid of from this error. You can download this from here. There is no need to download visual studio for this.

安装后,必须重新启动系统.之后,您可以安装您的库.

After the installation, you must restart your system. After that you can install your library.

如果您使用的是python3.x版本,请运行以下代码

If you are using python3.x version, run this code

pip3 install scrapy

如果您使用的是python2.x版本,请运行以下代码

If you are using python2.x version, run this code

pip install scrapy

这篇关于Scrapy安装(需要Microsoft Visual C ++ 14.0)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆