python 3.9 Installation failure on windows - python

Building wheels for collected packages: oommfpy
Building wheel for oommfpy (setup.py) ... error
ERROR: Command errored out with exit status 1:
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\bin\Hostx64\x86\cl.exe' failed with exit code 2

Related

How to resolve error, "legacy-install-failure" when installing package pysha3 in PyCharm using python 3.11 on windows?

I'm pretty new to programming in python, and the reason why I am using or have been learning python as of now is to complete an assignment. However, when downloading a source code and attempting to use it, I encountered errors that I cannot resolve. The source code is from this website "https://github.com/ZeroProphet/klefki#readme. If anyone can help me with this problem, that would be great.
I tried updating the pip version and even doing a specific step-by-step installation of the package in PyCharm. I expect it to be downloaded successfully, but it keeps stating that it cannot build the wheel for pysha3 and legacy-install-failure. If anything, try running this program and see if you're experiencing similar issues.
This error is shown when I attempt to run the program:
Collecting pyasn1==0.3.7
Using cached pyasn1-0.3.7-py2.py3-none-any.whl (63 kB)
Collecting base58==0.2.5
Using cached base58-0.2.5-py3-none-any.whl (4.1 kB)
Collecting asn1ate==0.6.0
Using cached asn1ate-0.6.0-py3-none-any.whl (29 kB)
Collecting pysha3==1.0.2
Using cached pysha3-1.0.2.tar.gz (829 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting flatbuffers==1.12
Using cached flatbuffers-1.12-py2.py3-none-any.whl (15 kB)
Collecting pyparsing>=2.0.0
Using cached pyparsing-3.0.9-py3-none-any.whl (98 kB)
Building wheels for collected packages: pysha3
Building wheel for pysha3 (setup.py): started
Building wheel for pysha3 (setup.py): finished with status 'error'
Running setup.py clean for pysha3
Failed to build pysha3
Installing collected packages: pysha3, pyasn1, flatbuffers, base58, pyparsing, asn1ate
Running setup.py install for pysha3: started
Running setup.py install for pysha3: finished with status '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-311
copying sha3.py -> build\lib.win-amd64-cpython-311
running build_ext
building '_pysha3' 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 pysha3
**error: subprocess-exited-with-error**
Running setup.py install for pysha3 did not run successfully.
exit code: 1
[11 lines of output]
running install
C:\Users\sxmfc\Downloads\klefki-master\venv\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-311
copying sha3.py -> build\lib.win-amd64-cpython-311
running build_ext
building '_pysha3' 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.
pysha3
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.```

Unable to install Aerospike pip package | Macbook M1 chip

I am trying to install aerospike in my virtualenv by using below command
pip install aerospike==5.0.0
but it is unable to install. It is throwing below error
Collecting aerospike==5.0.0
Using cached aerospike-5.0.0.tar.gz (182 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: aerospike
Building wheel for aerospike (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [150 lines of output]
info: Executing ./scripts/aerospike-client-c.sh
# ... very long output ... #
ld: warning: directory not found for option '-L/usr/local/opt/openssl#1.1/lib'
ld: warning: directory not found for option '-L/usr/local/opt/openssl/lib'
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'clang' failed with exit status 1
[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.
╰─> aerospike
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
I have tried to install wheel and then install this package but it's not working.
I have also tried by installing rosetta2 on mac but it didn't work.
Also, if it requires whole output do let me know where I can share that publish the link here in my question.

Unable to install hunspell on windows 10

i am unable to install hunspell on windows 10
whenever i try to install it using pip it throws the following error.
Building wheel for hunspell (setup.py) ... error
ERROR: Command errored out with exit status 1:
command:
Complete output (12 lines):
running bdist_wheel
running build
running build_ext
building 'hunspell' extension
creating build
creating build\temp.win-amd64-3.7
creating build\temp.win-amd64-3.7\Release
C:\Program Files (x86)\Microsoft Visual
----------------------------------------
ERROR: Failed building wheel for hunspell
Running setup.py clean for hunspell
Failed to build hunspell
Installing collected packages: hunspell
Running setup.py install for hunspell ... error
ERROR: Command errored out with exit status 1:
Tried this ?
pip install CyHunspell
See https://github.com/OpenGov/cython_hunspell.

Building wheel for openpiv (PEP 517)

I have tried a lot to install the OpenPiv in my Windows 10. But unable. I am using python3.6.
It is showing the same error again and again.
Can anyone please help me to remove this particular issue?
Building wheels for collected packages: openpiv Building wheel for
openpiv (PEP 517) ... error ERROR: Command errored out with exit
status 1: command:
'c:\users\admin\appdata\local\programs\python\python36\python.exe'
'c:\users\admin\appdata\local\programs\python\python36\lib\site-packages\pip_vendor\pep517_in_process.py'
build_wheel 'C:\Users\Admin\AppData\Local\Temp\tmphn4228z0'

Not able to install pyaudio on windows. Getting below error

src/_portaudiomodule.c(29): fatal error C1083: **Cannot open include file: 'portaudio.h': No such file or directory**
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2
----------------------------------------
Failed building wheel for pyaudio
Running setup.py clean for pyaudio
Failed to build pyaudio
Installing collected packages: pyaudio

Categories