pycosat
pycosat copied to clipboard
ERROR: Failed building wheel for pycosat
Checklist
- [X] I added a descriptive title
- [X] I searched open reports and couldn't find a duplicate
What happened?
I coudn't pip install pycosat in my windows cmd. I got the following error. Please help me on finding the solution?
ollecting pycosat Using cached pycosat-0.6.3.zip (66 kB) Preparing metadata (setup.py) ... done Building wheels for collected packages: pycosat Building wheel for pycosat (setup.py) ... error error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [9 lines of output] running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-cpython-39 copying test_pycosat.py -> build\lib.win-amd64-cpython-39 running build_ext building 'pycosat' extension 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/ [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pycosat Running setup.py clean for pycosat Failed to build pycosat Installing collected packages: pycosat Running setup.py install for pycosat ... error error: subprocess-exited-with-error
× Running setup.py install for pycosat did not run successfully. │ exit code: 1 ╰─> [11 lines of output] running install C:\Users\Dharshan\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running build running build_py creating build creating build\lib.win-amd64-cpython-39 copying test_pycosat.py -> build\lib.win-amd64-cpython-39 running build_ext building 'pycosat' extension 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/ [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure
× Encountered error while trying to install package. ╰─> pycosat
Conda Info
No response
Conda Config
No response
Conda list
No response
Additional Context
No response
It seems to indicate the lack of a C++ compiler on your system, could you verify if that was installed before?