UV installing pyaudio
Opened this issue · 3 comments
I normally use mini conda. And I have pyaudio all ready installed. I did try uninstalling it and i actually downloaded it and built it witht he make file. no matter what I do i can't get uv to install it or see it. Any ideas would be appreciated. Thanks.
C:\AI_Stuff\AI_Program_Code\poc-realtime-ai-assistant>uv sync
Resolved 37 packages in 9ms
error: Failed to prepare distributions
Caused by: Failed to fetch wheel: pyaudio==0.2.14
Caused by: Build backend failed to build wheel through build_wheel
(exit code: 1)
[stdout]
device_api.c
C:\Users\yar_s\AppData\Roaming\uv\python\cpython-3.13.0-windows-x86_64-none\include\pyconfig.h(138): warning C4005: 'MS_WIN64': macro redefinition
C:\Users\yar_s\AppData\Roaming\uv\python\cpython-3.13.0-windows-x86_64-none\include\pyconfig.h(138): note: 'MS_WIN64' previously declared on the command line
src/pyaudio/device_api.c(9): fatal error C1083: Cannot open include file: 'portaudio.h': No such file or directory
[stderr]
WARNING:root:Warning: VCPKG_PATH envrionment variable not set.
INFO:root:running bdist_wheel
INFO:root:running build
INFO:root:running build_py
INFO:root:copying src\pyaudio_init_.py -> build\lib.win-amd64-cpython-313\pyaudio
INFO:root:running build_ext
INFO:root:building 'pyaudio._portaudio' extension
INFO:root:"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DMS_WIN64=1 -IC:\Users\yar_s\AppData\Local\uv\cache\builds-v0.tmp2hEBnR\include -IC:\Users\yar_s\AppData\Roaming\uv\python\cpython-3.13.0-windows-x86_64-none\include -IC:\Users\yar_s\AppData\Roaming\uv\python\cpython-3.13.0-windows-x86_64-none\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcsrc/pyaudio/device_api.c /Fobuild\temp.win-amd64-cpython-313\Release\src/pyaudio/device_api.obj /MT
cl : Command line warning D9025 : overriding '/MD' with '/MT'
error: command 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\bin\HostX86\x64\cl.exe' failed with exit code 2
Also note if I just try to do a pip install pyaudio I get:
C:\AI_Stuff\AI_Program_Code\poc-realtime-ai-assistant>pip install pyaudio
Requirement already satisfied: pyaudio in c:\users\yar_s\miniconda3\lib\site-packages (0.2.14)
Are you using windows??
Try installing it with pip install uv
I am a window user I tried this get same error.