Pip error: Microsoft Visual C++ 14.0 is required
You need to install Microsoft Visual C++ 14.0 to install pycrypto:
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
In the comments you ask which link to use. Use the link to Visual C++ 2015 Build Tools. That will install Visual C++ 14.0 without installing Visual Studio.
Alternate link: https://wiki.python.org/moin/WindowsCompilers#Microsoft_Visual_C.2B-.2B-_14.2_standalone:_Build_Tools_for_Visual_Studio_2019_.28x86.2C_x64.2C_ARM.2C_ARM64.29
In the comments you ask about methods of installing pycrypto
that do not require installing a compiler. The binaries in the links appear to be for earlier versions of Python than you are using. One link is to a binary in a DropBox account.
I do not recommend downloading binary versions of cryptography libraries provided by third parties. The only way to guarantee that you are getting a version of pycrypto
that is compatible with your version of Python and has not been built with any backdoors is to build it from the source.
After you have installed Visual C++, just re-run the original command:
pip install -U steem
To find out what the various install options mean, run this command:
pip help install
The help for the -U
option says
-U, --upgrade Upgrade all specified packages to the newest available
version. The handling of dependencies depends on the
upgrade-strategy used.
If you do not already have the steem
library installed, you can run the command without the -U
option.
How to solve error: Microsoft Visual C++ 14.0 or greater is required when installing Python packages?
Go to this link and download Microsoft C++ Build Tools:
https://visualstudio.microsoft.com/visual-cpp-build-tools/
Open the installer, then follow the steps.
You might have something like this, just download it or resume.
If updating above doesn't work then you need to configure or make some updates here. You can make some updates here too by clicking "Modify".
Check that and download what you need there or you might find that you just need to update Microsoft Visual C++ as stated on the error, but I also suggest updating everything there because you might still need it on your future programs. I think those with the C++ as I've done that before and had a similar problem just like that when installing a python package for creating WorldCloud visualization.
UPDATE: December 28, 2020
You can also follow these steps here:
- Select: Workloads → Desktop development with C++
- Then for Individual Components, select only:
- Windows 10 SDK
- C++ x64/x86 build tools
You can also achieve the same automatically using the following command:
vs_buildtools.exe --norestart --passive --downloadThenInstall --includeRecommended --add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Workload.MSBuildTools
Reference:
https://www.scivision.dev/python-windows-visual-c-14-required
Python error: Microsoft Visual C++ 14.0 is required, although it has been already installed
Note you're seeing
setup.py:63: RuntimeWarning: NumPy 1.21.0 may not yet support Python 3.10.
in the output too.
Install numpy==1.21.6
instead.
It has binary wheels for Python 3.10 on Windows, so you don't need to compile it by hand, and the NumPy project is good with semver compatibility, so whatever requires numpy==1.21.0
should be fine with 1.21.6
.
Related Topics
How to Initialize Weights in Pytorch
How to Check If All Items in a List Are There in Another List
Python Progression Path - from Apprentice to Guru
Wordnet Lemmatization and Pos Tagging in Python
Python Super() Raises Typeerror
Matplotlib: Plotting Numerous Disconnected Line Segments with Different Colors
Generate a List of Datetimes Between an Interval
Why Doesn't Exec Work in a Function with a Subfunction
How to Extract Frequency Associated with Fft Values in Python
Replace Nth Occurrence of Substring in String
Dataframe Set_Index Not Setting
Why Do Many Examples Use 'Fig, Ax = Plt.Subplots()' in Matplotlib/Pyplot/Python
Why Doesn't List Have Safe "Get" Method Like Dictionary
Using a Dictionary to Select Function to Execute
Calling Matlab Functions from Python
How to Convert Column with List of Values into Rows in Pandas Dataframe