Install Microsoft Visual C ++ 10 / SDK 7.1 on Windows 10 (for Python packages requiring VC ++ 10)

When I tried to install the scrapy package (Python 3.4, Windows 10), I received an error message

error: Microsoft Visual C++ 10.0 is required. Get it with "Microsoft Windows SDK 7.1": www.microsoft.com/download/details.aspx?id=8279 

I have a problem with other packages and have not yet been resolved. After reading the problem, I believe that the problem is that the SDK 7.1 is installed on Windows 10, because the latter comes with a preinstalled version of .NET 4, which the SDK installer does not recognize. (He says you need .NET 4, get it from ..., but the installer that you get from there says .NET 4 is already installed).

My question is: does anyone know a link to the final solution to any of the problems of (1) installing Python packages that require VC ++ 10 or (2) installing SDK 7.1 on Window 10?

We are pleased to provide more detailed information about aspects of the Python or Windows problem.

+6
source share
1 answer

To install the SDK on Windows 10, you can trick the installer into believing that you have the expected version of .NET by temporarily changing registry keys.

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\NET Framework Setup\NDP\v4\Client\Version

and

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\NET Framework Setup\NDP\v4\Full\Version

to

4.0.30319

Remember to set the values ​​after completion!

There are various other potential solutions that do not include modifying the registry, but this worked for me.

0
source

Source: https://habr.com/ru/post/1013907/


All Articles