error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

Zaneta Rezkova 46 Reputation points
2020-10-23T09:13:16.433+00:00

Hello,

I'm trying install library web3. Unfortunatly the code ended with this error every time.

error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

I have python 3.7.5 and windows 10 home. The MV C++ I have already installed and the version of Visual Studio is 2019 and Visual C++ Build Tools 2015.

Can somebody take me advice?
Thank you.

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,535 questions
{count} votes

4 answers

Sort by: Most helpful
  1. Jeanine Zhang-MSFT 9,181 Reputation points Microsoft Vendor
    2020-10-26T03:01:36.473+00:00

    Hi,

    According to the issue, as far as I'm concerned you could install the latest build tools.

    I suggest you could try to go to the link and download this:

    34850-10261.png

    And then check that and download what you need there or you might found there that you just need to update Microsoft Visual C++ as stated on the error, but I also suggest to update everything there cause you might still need it on your future programs.

    34873-10262.png

    Best Regards,

    Jeanine


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    15 people found this answer helpful.

  2. Blondis Barrios Espinosa 11 Reputation points
    2021-11-19T20:42:37.41+00:00

    The problem is Python310 dont know file (.whl), so, you must to download here https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyodbc and install: pip install pyodbc‑4.0.32‑cp310‑cp310‑win_amd64.whl

    2 people found this answer helpful.

  3. Florian Will 1 Reputation point
    2022-01-01T21:50:13.547+00:00

    Are you trying to use a Linux Python program on a Windows system? First, install WSL and do it all over again from your Linux prompt.


  4. Bastin Bajiyo Job 0 Reputation points
    2024-02-15T17:54:16.7366667+00:00

    FIXED - I use python version 3.11x and was unable to install libraries like matplotlib. Here are the steps to fix this:

    1. Install the 'Desktop Development with C++' components using Visual Studio Build tool.
    2. Locate the directory where MSBuild is installed (typically "C:\Program Files (x86)\Microsoft Visual Studio\20xx\BuildTools\MSBuild\Current\Bin") and add it to the PATH variable.
    3. Install cmake (pip install cmake) if not already installed.
      RESTART you computer.

    The error should be fixed now.

    0 comments No comments