. Advertisement .
..3..
. Advertisement .
..4..
Python is a well-known and widely-used programming language in the world. While working with python, we use a virtual environment to maintain our projects or applications. However, there are many times you might run into an error “Microsoft Visual C++ 14.0 is required. Get it with “Microsoft Visual C++ Build Tools”. You want to make it clear as well as how to resolve this error. This post is going to show you, let’s enjoy!
When did the error “Microsoft Visual C++ 14.0 is required. Get it with “Microsoft Visual C++ Build Tools” occur?
While working with Python, you are installing any libraries, the message can be displayed Microsoft Visual C++ 14.0 is required. Get it with “Microsoft Visual C++ Build Tools”. This error happens when the program cannot detect the Visual C++ Build Tools on your system. Below is the error when trying to install cryptography.
building 'Crypto.Random.OSRNG.winrandom' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual
C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
How To Resolve The Problem?
Here are some solutions for you:
Suggestion 1: Install Microsoft Visual C++ 14.0 then using cryptography
An easy way is directly to install Microsoft Visual C++ 14.0.
First of all, you need to prepare the install file by downloading Visual C++ 2015 Build Tools, here. Next, run this file. It will install Visual C++ 14.0 without Visual Studio install. Then, when Visual C++ was installed successfully, you just re-run the command that you are dealing with this error.
A command for installing cryptography, for example.
pip install cryptography
Follow this, and check the error happens or not.
Suggestion 2: Using Visual C++ build tools
The other way to install Visual C++ Build tools, you just include the Visual C++ build tools in Visual Studio Installer.
Check if your system has already installed Visual Studio Code. Following these steps below:
Step 1. You go to open the Visual Studio Installer from the contained directory OR from searching on Start Menu.
Step 2. Lookup for Visual Studio Build Tools and then click “Modify”.
Step 3. On the Visual C++ build tools checkbox, please checkmark on. Then, in the bottom right, click “Modify” to install them.
Step 4. After the C++ tools have finished installing, you need to re-run the pip command and it will work.
......... ADVERTISEMENT .........
..8..

Suggestion 3: Use the command line
The easy way for you is use this command line:
pip install mysqlclient‑1.3.10‑cp35‑cp35m‑win_amd64.whl.
Suggestion 4: Install precompiled Windows binaries
To fix this issue, it is necessary to Install precompiled Windows binaries. For installation, you must utilize the following commands and the error will be fixed. In this case, use this command:
pip install pipwin
pipwin install yourLibrary
Conclusion
We hope you enjoyed our post about resolving and finding out the way to resolve this error “Microsoft Visual C++ 14.0 is required. Get it with “Microsoft Visual C++ Build Tools”. Have you chosen any solution yet, please leave a comment to let us know your results? We really appreciate your comments. Thank you!
Leave a comment