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.
image.png
The following figure shows the log.
image.png

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
**What If Installing a Python Library Fails and "Microsoft Visual C    14.0 is required" Is Reported on Windows 7/Windows 10? - 图3

Step 3: Double-click the program to run it
image.png
Select Download packages from the internet when A setup package is either missing or damaged is displayed and click Retry.
image.png
After the installation is complete, the tool displays the message “Setup Completed!”
image.png
Step4: Return to mBlock-Python Editor and install the Python library that failed to be installed

The Python library can be properly installed.
image.png
:::info 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. :::