What If Installing a Python Library Fails and “Microsoft Visual C ++ 14.0 is required” Is Reported on Windows 7/Windows 10?

  • Help Hub
  • mBlock Python Editor
  • FAQs
  • What If Installing a Python Library Fails and "Microsoft Visual C ++ 14.0 is required" Is Reported on Windows 7/Windows 10?

What If Installing a Python Library Fails and “Microsoft Visual C ++ 14.0 is required” Is Reported on Windows 7/Windows 10?

Problem

Installing a Python library or some Python libraries fails and the “Microsoft Visual C ++ 14.0 is required” error is reported in the log.

The following figure shows the log.

Solution

Perform the following steps to configure the C++ environment:

Step 1: Download the following tool package

📎Microsoft Visual C++ Build Tools.rar

Step 2: Decompress the package to obtain the following program


image

Step 3: Double-click the program to run it

Select Download packages from the internet when A setup package is either missing or damaged is displayed and click Retry.

After the installation is complete, the tool displays the message “Setup Completed!”

Step4: Return to mBlock-Python Editor and install the Python library that failed to be installed

The Python library can be properly installed.

 

Note:

  • Make sure that your computer is connected to the Internet during the configuration, so that packages can be properly downloaded.
  • The configuration may take a period (more than 20 minutes), wait patiently until the process ends.