skip to Main Content

I’m trying to install a package on python (pip install basedosdados -U) and I get the following message: error:

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

After installing it and ticking this enter image description here (as suggested by another thread I read), I now get the following error message:

error: command ‘C:Program Files (x86)Microsoft Visual Studio2022BuildToolsVCToolsMSVC14.34.31933binHostX86x64cl.exe’ failed with exit code 2

Any suggestions on how to proceed?

Thanks a lot!

I tried many things, just installing it without ticking the box previously mentioned also does not work.

2

Answers


  1. Did you try to install the whl instead of the tar.gz?
    A whl is the "compiled" finished version of the package, so it should be able not to try to build it at all.

    You can use pip install basedosdados -U --prefer-binary or just manually installing from pypi

    Login or Signup to reply.
  2. ERROR: Failed building wheel for pandas Failed to build pandas ERROR: Could not build wheels for pandas, which is required to install pyproject.toml-based projects

    I have encountered similar problems. The solution is to install 64-bit pandas instead of 32-bit.

    You can read the installation page and select the appropriate version to install.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search