Home > Backend Development > Python Tutorial > Why is 'Microsoft Visual C 14.0 is required' Error Appearing During pip Installation and How Can I Fix It?

Why is 'Microsoft Visual C 14.0 is required' Error Appearing During pip Installation and How Can I Fix It?

DDD
Release: 2024-12-05 18:14:11
Original
760 people have browsed it

Why is

Pip Error: Microsoft Visual C 14.0 Required

Encountering the error message "Microsoft Visual C 14.0 is required" while attempting to install steem using pip can be frustrating. To address this issue, let's delve into the cause and the necessary steps to resolve it.

The error message indicates that your Python installation requires Microsoft Visual C 14.0 to complete the pycrypto installation. Pycrypto, a dependency for steem, relies on a compiler for building its C extensions.

Solution

To install Microsoft Visual C 14.0, follow these steps:

  1. Navigate to 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
  2. Click on the link to "Visual C 2015 Build Tools."
  3. Download and install the build tools.

Alternate Solution

If you prefer not to install a compiler, you can consider the following alternate approach:

  1. Download a binary version of pycrypto that is compatible with Python 3.x.
  2. Ensure that the downloaded binary is trusted and has not been compromised.
  3. Place the binary in a location where Python can find it.

Next Steps

Once Visual C 14.0 is installed or the binary has been placed, re-run the original command to install steem:

pip install -U steem
Copy after login

If you encounter any further issues, consider consulting the official pip documentation for additional troubleshooting steps.

The above is the detailed content of Why is 'Microsoft Visual C 14.0 is required' Error Appearing During pip Installation and How Can I Fix It?. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template