Configure Python environment under Windows error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft

created at 11-17-2021 views: 7

problem Description

An error occurred when configuring and installing the pycotools package in the Anaconda environment under Windows 10:

error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft

solution

The main reason is that my Windows 10 lacks some of the environment and dependencies that need to be compiled for C++ when installing the Python package, so it needs to be downloaded and installed.

Open the link and click to download the BUILD tool:

You will download an executable file named vs_buildtools__396764696.1636620081.exe, double-click the executable file, it will download and install the library, pay attention to select the following components during the download process:

C++ BUILD TOOLS

After waiting for the download and installation to complete, you need to restart the computer to take effect.

This completes the installation of C++ and other environment dependencies.

created at:11-17-2021
edited at: 11-17-2021: