Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install Kivy and PyAudio ERROR: Command errored out with exit status 1: #8704

Closed
TaggedDev opened this issue Aug 4, 2020 · 7 comments
Closed
Labels
resolution: wrong project Should be reported elsewhere

Comments

@TaggedDev
Copy link

Environment

  • pip version: 20.2.1
  • Python version: 3.8.5
  • OS: Microsoft Windows 10

I wanted to download kivy some days ago but I stuck with the same problem there as I am here with PyAudio now. I wanted to do the Audio Recognizer with speech_recognition. But the error says that PyAudio is required as well and its not installed. I tried to installed PyAudio too but I got the same pip install error (below). And I have the same thing when I am trying to download Kivy module too. Could you help me? Thanks.

C:\Windows\system32>pip install PyAudio
Collecting PyAudio
  Using cached PyAudio-0.2.11.tar.gz (37 kB)
Building wheels for collected packages: PyAudio
  Building wheel for PyAudio (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'd:\python\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\temp\\pip-install-6pli5j0v\\pyaudio\\setup.py'"'"'; __file__='"'"'C:\\temp\\pip-install-6pli5j0v\\pyaudio\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\temp\pip-wheel-bmt3h4eq'
       cwd: C:\temp\pip-install-6pli5j0v\pyaudio\
  Complete output (15 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win32-3.8
  copying src\pyaudio.py -> build\lib.win32-3.8
  running build_ext
  building '_portaudio' extension
  creating build\temp.win32-3.8
  creating build\temp.win32-3.8\Release
  creating build\temp.win32-3.8\Release\src
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Id:\python\include -Id:\python\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcsrc/_portaudiomodule.c /Fobuild\temp.win32-3.8\Release\src/_portaudiomodule.obj
  _portaudiomodule.c
  src/_portaudiomodule.c(27): fatal error C1083: ЌҐ г¤ Ґвбп ®вЄалвм д ©« ўЄ«о祭ЁҐ: stdio.h: No such file or directory,
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.26.28801\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
  ----------------------------------------
  ERROR: Failed building wheel for PyAudio
  Running setup.py clean for PyAudio
Failed to build PyAudio
DEPRECATION: Could not build wheels for PyAudio which do not use PEP 517. pip will fall back to legacy 'setup.py install' for these. pip 21.0 will remove support for this functionality. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at https://github.com/pypa/pip/issues/8368.
Installing collected packages: PyAudio
    Running setup.py install for PyAudio ... error
    ERROR: Command errored out with exit status 1:
     command: 'd:\python\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\temp\\pip-install-6pli5j0v\\pyaudio\\setup.py'"'"'; __file__='"'"'C:\\temp\\pip-install-6pli5j0v\\pyaudio\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\temp\pip-record-vzlk5_on\install-record.txt' --single-version-externally-managed --compile --install-headers 'd:\python\Include\PyAudio'
         cwd: C:\temp\pip-install-6pli5j0v\pyaudio\
    Complete output (15 lines):
    running install
    running build
    running build_py
    creating build
    creating build\lib.win32-3.8
    copying src\pyaudio.py -> build\lib.win32-3.8
    running build_ext
    building '_portaudio' extension
    creating build\temp.win32-3.8
    creating build\temp.win32-3.8\Release
    creating build\temp.win32-3.8\Release\src
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Id:\python\include -Id:\python\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcsrc/_portaudiomodule.c /Fobuild\temp.win32-3.8\Release\src/_portaudiomodule.obj
    _portaudiomodule.c
    src/_portaudiomodule.c(27): fatal error C1083: ЌҐ г¤ Ґвбп ®вЄалвм д ©« ўЄ«о祭ЁҐ: stdio.h: No such file or directory,
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.26.28801\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'd:\python\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\temp\\pip-install-6pli5j0v\\pyaudio\\setup.py'"'"'; __file__='"'"'C:\\temp\\pip-install-6pli5j0v\\pyaudio\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\temp\pip-record-vzlk5_on\install-record.txt' --single-version-externally-managed --compile --install-headers 'd:\python\Include\PyAudio' Check the logs for full command output.

@triage-new-issues triage-new-issues bot added the S: needs triage Issues/PRs that need to be triaged label Aug 4, 2020
@uranusjr
Copy link
Member

uranusjr commented Aug 5, 2020

This looks like an issue with PyAudio. You will have better luck reporting this on their issue tracker; there is little pip can do here.

@uranusjr uranusjr added resolution: wrong project Should be reported elsewhere S: awaiting response Waiting for a response/more information labels Aug 5, 2020
@triage-new-issues triage-new-issues bot removed S: needs triage Issues/PRs that need to be triaged labels Aug 5, 2020
@TaggedDev
Copy link
Author

pip install pipwin
pipwin install pyaudio

https://stackoverflow.com/questions/51992375/python-package-installation-issues-pyaudio-portaudio

This helped

@no-response no-response bot removed the S: awaiting response Waiting for a response/more information label Aug 5, 2020
@uranusjr uranusjr mentioned this issue Aug 7, 2020
@himanshubeniwal
Copy link

This really helped!

pip install pipwin
pipwin install pyaudio

@mozo849
Copy link

mozo849 commented Oct 5, 2020

pip install kivy
still an error for me
pls help!!

@rushabhnaik16
Copy link

Anyone stil struggling with this issue
Run your cmd in administrator mode:

pip install pipwin
pipwin install pyaudio
this fixes the issue.

@MomchilovP
Copy link

Hello guys, I am making a voice assistant, and I have installed pyaudio from my cmd as an administrator using pipwin, I have even updated my visualstudio.
When I start my code in PyCharm I receive " ModuleNotFoundError: No module named 'pyaudio' " while I have installed it several times and in my cmd, it says that it is installed. When I import it in PyCharm and it wants to install the package there, I install it and it gives me an error "ERROR: Command errored out with exit status 1:" proposing to check if I have the latest version of pip and I do, I have updated everything but it seems that it just does not want to work. Any suggestions?

@MANNAISALIM
Copy link

yes it work for me
pip install pipwin
pipwin install pyaudio
this fixes the issue.

@pypa pypa locked as resolved and limited conversation to collaborators Dec 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
resolution: wrong project Should be reported elsewhere
Projects
None yet
Development

No branches or pull requests

7 participants