error: Microsoft Visual C++ 10.0 is required (Unab

2019-09-05 16:08发布

I am trying to install Scrapy.

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

enter image description here

I have System Variable name:value is VS100COMNTOOLS:VS140COMNTOOLS

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

I also have Microsoft Visual C++ Compiler for Python 2.7 installed.

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

1条回答
\"骚年 ilove
2楼-- · 2019-09-05 16:31

I got this working.

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.

Hope this helps.

查看更多
登录 后发表回答