Not able to install pyaudio on windows. Getting below error - python

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

Related

can't install pyaudio can't build weel error Mac

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
ERROR: Failed building wheel for PyAudio
Failed to build PyAudio
ERROR: Could not build wheels for PyAudio, which is required to install pyproject.toml-based projects
I get this error how to solve this ?
Mac user
it gives me can't build weel even tho I tired many Methods posted here

I cant download the py4ak lib because of an error regarding the .h file. There is some issue with the C++ build tools that I need help resolving

When I try to pip install the py4ak lib using the following command:
pip install pyk4a --no-use-pep517 --global-option=build_ext --global-option="-IC:\Program Files\Azure Kinect SDK v1.4.1\sdk\include" --global-option="-LC:\Program Files\Azure Kinect SDK v1.4.1\sdk\windows-desktop\amd64\release\lib"
I get the following error:
PS C:\Users\Abdel Nasser\Documents\azure-kinect> pip install pyk4a --no-use-pep517 --global-option=build_ext --global-option="-IC:\Program Files\Azure Kinect SDK v1.4.1\sdk\include" --global-option="-LC:\Program Files\Azure Kinect SDK v1.4.1\sdk\windows-desktop\amd64\release\lib"
>>
WARNING: Disabling all use of wheels due to the use of --build-option / --global-option / --install-option.
WARNING: Ignoring invalid distribution -ywin32 (c:\users\abdel nasser\desktop\python\python38\lib\site-packages)
WARNING: Ignoring invalid distribution -ywin32 (c:\users\abdel nasser\desktop\python\python38\lib\site-packages)
Collecting pyk4a
Using cached pyk4a-1.4.0.tar.gz (23 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in c:\users\abdel nasser\desktop\python\python38\lib\site-packages (from pyk4a) (1.23.0)
Requirement already satisfied: python_version>="3.4" in c:\users\abdel nasser\desktop\python\python38\lib\site-packages (from pyk4a) (0.0.2)
Skipping wheel build for pyk4a, due to binaries being disabled for it.
WARNING: Ignoring invalid distribution -ywin32 (c:\users\abdel nasser\desktop\python\python38\lib\site-packages)
Installing collected packages: pyk4a
Running setup.py install for pyk4a ... error
error: subprocess-exited-with-error
× Running setup.py install for pyk4a did not run successfully.
│ exit code: 1
╰─> [13 lines of output]
Automatically detected kinect SDK. Adding include dir: C:\Program Files\Azure Kinect SDK v1.4.1\sdk\include and library dir C:\Program Files\Azure Kinect SDK v1.4.1\sdk\windows-desktop\AMD64\release\lib.
c:\users\abdel nasser\desktop\python\python38\lib\site-packages\setuptools\dist.py:771: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
warnings.warn(
running build_ext
building 'k4a_module' extension
creating build
creating build\temp.win-amd64-cpython-38
creating build\temp.win-amd64-cpython-38\Release
creating build\temp.win-amd64-cpython-38\Release\pyk4a
"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.32.31326\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD "-IC:\Program Files\Azure Kinect SDK v1.4.1\sdk\include" "-Ic:\users\abdel nasser\desktop\python\python38\lib\site-packages\numpy\core\include" "-IC:\Program Files\Azure Kinect SDK v1.4.1\sdk\include" "-Ic:\users\abdel nasser\desktop\python\python38\include" "-Ic:\users\abdel nasser\desktop\python\python38\Include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.32.31326\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.32.31326\include" /EHsc /Tppyk4a/pyk4a.cpp /Fobuild\temp.win-amd64-cpython-38\Release\pyk4a/pyk4a.obj
pyk4a.cpp
c:\users\abdel nasser\desktop\python\python38\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.32.31326\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
[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.
╰─> pyk4a
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
WARNING: Ignoring invalid distribution -ywin32 (c:\users\abdel nasser\desktop\python\python38\lib\site-packages)
WARNING: Ignoring invalid distribution -ywin32 (c:\users\abdel nasser\desktop\python\python38\lib\site-packages)
WARNING: Ignoring invalid distribution -ywin32 (c:\users\abdel nasser\desktop\python\python38\lib\site-packages)
Image of C++ build tools that are installed
I am not at all sure how to deal with this:
c:\users\abdel nasser\desktop\python\python38\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.32.31326\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2 [end of output]
Any help will be greatly appreciated.
To resolve the error, enable the VS compiler to find the header, by defining the environment variable INCLUDE pointing to the path of io.h.
The location of io.h may change for various versions and environments.
References:
'io.h': No such file or directory during "pip install netifaces"

python 3.9 Installation failure on windows

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

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.

I am trying to import mysqldb for django. 'my_config.h ' no such file or directory is the error that i am getting

Initially i got that error called vcvarsall.bat not found.To resolve that i installed Microsoft visual studio 14 .After that the error i got is
C:\Users\...\Desktop\mysqlclient-1.3.7>python setup.py install
running install
running bdist_egg
running egg_info
writing top-level names to mysqlclient.egg-info\top_level.txt
writing mysqlclient.egg-info\PKG-INFO
writing dependency_links to mysqlclient.egg-info\dependency_links.txt
reading manifest file 'mysqlclient.egg-info\SOURCES.txt'
. ..
...
_mysql.c
_mysql.c(29): fatal error C1083: Cannot open include file: 'my_config.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\
cl.exe' failed with exit status 2
I have no clue how to proceed. I am using Windows 8 and Python 3.5 .
mysqlclient uses a library from MySQL.
For Windows, install a libmysqlclient here: https://dev.mysql.com/downloads/connector/c/
Then try reopening your cmd.

Categories