错误:需要 Microsoft Visual C++ 10.0(无法找到 vcvarsall.bat).在 Windows 10 64 位上安装 Scrapy 时 [英] error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat). while installing Scrapy on Windows 10 64-bit

查看:39
本文介绍了错误:需要 Microsoft Visual C++ 10.0(无法找到 vcvarsall.bat).在 Windows 10 64 位上安装 Scrapy 时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装 Scrapy.

I am trying to install Scrapy.

我收到此错误.我知道 SO 上存在很多问题,但没有一个解决方案对我有用.

I am getting this error. I know there are many questions exists on SO but none of a solution has worked for me.

    building 'twisted.test.raiser' extension
    error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).

    ----------------------------------------
Command "c:\python34\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Mani\\AppData\\Local\\Temp\\pip-build-eav78sdn\\Twisted\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\Mani\AppData\Local\Temp\pip-19_gmj4b-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Mani\AppData\Local\Temp\pip-build-eav78sdn\Twisted\

我的电脑上安装了这些东西

I have these things installed in my computer

我有系统变量名称:值是 VS100COMNTOOLS:VS140COMNTOOLS

I have System Variable name:value is VS100COMNTOOLS:VS140COMNTOOLS

我还在 OpenSSL-Win64 中安装了 OpenSSL 并添加到 Windows PATH

I also have OpenSSL installed in OpenSSL-Win64 and added to Windows PATH

我还安装了 Microsoft Visual C++ Compiler for Python 2.7.

我该怎么办?我已经尝试了 SO 上提供的所有解决方案,但都没有奏效.

What should I do? I have tried all solutions provided on SO but none worked.

推荐答案

我成功了.

通常这些需要非常特殊的 Visual Studios C++ 编译器版本.在这种情况下,请按照 此页面用于Microsoft Visual C++ 10.0 独立版:Windows SDK 7.1" 用于获得扭曲的运行(在这种情况下是包)

Usually these require very particular versions of the Visual studios C++ compiler. In this case, following the steps listed on this page for the "Microsoft Visual C++ 10.0 standalone: Windows SDK 7.1" worked for getting twisted running (which is the package that's screwing up in this case)

如果这不起作用,您可以在这里找到非官方的轮子(了解有关轮子的更多信息这里)

If that doesn't work, you can find unofficial wheels here (learn more on wheels in general here)

下载正确的轮子(在本例中为扭曲的)并按照这些说明进行安装.

Download the correct wheel (in this case, twisted) and follow these instructions to install it.

希望这会有所帮助.

这篇关于错误:需要 Microsoft Visual C++ 10.0(无法找到 vcvarsall.bat).在 Windows 10 64 位上安装 Scrapy 时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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