Home > Mobile >  Python package: errors "Microsoft Visual C 14.0 or greater is required" & "failed w
Python package: errors "Microsoft Visual C 14.0 or greater is required" & "failed w

Time:02-01

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 Studio\2022\BuildTools\VC\Tools\MSVC\14.34.31933\bin\HostX86\x64\cl.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.

CodePudding user response:

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

CodePudding user response:

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.

  • Related