Enjoy Sharing Technology!

Software,Develope,Devops, Security,TroubleShooting

Sunday, November 21, 2021

error: Microsoft Visual C++ 14.0 is required

For developers, they often pip install the packages they need. Most of the packages can be installed basically, but they will always encounter the problem of not being able to install the packages. The first step of pre-study learning motivation is killed by the installation package. . One of the most troubled is this question: error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual……

I tried a lot of methods on the Internet, but still did not fundamentally solve the problem. Generally, for this kind of package that cannot be installed by pip, one is to go to the Python installation package complete (https://www.lfd.uci.edu/~gohlke/pythonlibs/) to download the installation package with the corresponding suffix of .whl. Install.

How to install the installation package with the suffix .whl: Download the corresponding installation package with the suffix .whl and place it in the folder you specify, enter cmd,

pip install Scrapy-1.5.0-py2.py3-none-any.whl 

The other is that if the package with the suffix .whl is not found, or the .whl package is not successfully installed, it is generally installed on the operating system. It is very convenient to install these packages on the Linux system with pip, and no error will be reported.

To solve this problem fundamentally, you can refer to the following.

When running the code first, it says that the XXX package is not installed. If you encounter this problem, go to cmd, and the pip install installation error is reported:


It shows that the visual studio installer has stopped working. . .

I tried to download and install Microsoft Visual 2017 https://download.csdn.net/download/heyshheyou/10624594, but when I downloaded it and installed it, I reported an error as soon as I clicked to install it, and the visual studio installer has stopped working. I was completely speechless. . . . . Download different versions of visual studio installation are all reporting this error, it may be a program conflict.

There are also uninstalling .NET Framework files on the Internet, downloading a newest .NET Framework file; and also uninstalling all files beginning with Microsoft Visual:

I almost tried it, but fortunately I continued to find other solutions. Except in the end, there is no way to try, or reinstall the system. Do not reinstall the system as a last resort.
Troubleshoot blocked installation and uninstallation of .NET Framework
For the downloaded version of Microsoft Visual C++:
Visual Studio 2013 ---> 12
Visual Studio 2015 ---> 14
 Visual Studio 2017 ---> 15

Python3 is compiled with VC++14, python27 is compiled with VC++9, and the package to install python3 needs to be compiled and supported by VC++14 or above.
If you encounter an error: error: Microsoft Visual C++ 14.0 is required, please try the following solutions first.

Solution:

Installed Microsoft visual c++ 14.0, searched for a lot of packages, and finally found a Microsoft Visual C++ Build Tools 2015 :visualcppbuildtoos_full.exe .

Double-click visualcppbuildtools_full.exe, select the default, click install, and wait for about 10 minutes to complete the installation.

Finally, the installation is complete, check the control panel-program-uninstall program under an additional file Microsoft visual c++ Build Tools:

That is, the installation is successful.

As a result, go to pip in cmd to install the packages you need.






Share:

0 comments:

Post a Comment

Search This Blog

Weekly Pageviews

Translate

Blog Archive