Trouble Installing PyAudio in Pycharm in windows 10
I Am Trying To Install PyAudio Package in Pycharm, but it is not being installed and this error is shown:
Have tried On Pycharm, running on Windows 10
3 Answers 3
I had same issue which was solved by executing below commands.
You need to install C++ Build Tools to download this package. Alternatively, you can download and install Visual Studio.
The Problem in PyCharm is probably caused because you are not using the right Python Interpreter. Most Users install first Python then PyCharm, without knowing that PyCharm install another Python Installation with it together. This should be the same issue with you because your PyCharm tries to use the build.py in the Visual Studio Directory. So here is what you have to check:
- On CMD/Terminal write «pip install pyaudio». If you can’t install on Windows with CMD install pip via: get-pip
- Check where your python Path is. You can do this on CMD/Terminal with the command «pip -V» this will show you the Path + Version of pip!. Now becarefull not to notice the pip Path! You have to Notice your Path to the Python Directory which is 2 Directory over the pip Folder! For example you will get an output like: «./python3/dist-packages/pip»
- Check your Base interpreter. Is it the same Python Path from Step 2? If not change your Base interpreter to the python Path. Try to install it now.
- If its still not working just Create a new Project with the Base Interpreter using the python installation Path from Step 2 and activate the checkbox «Inherit global site-packages«.
Почему не устанавливается библиотека PyAudio?
Здравствуйте!
Сразу скажу что пробовал:
1. pip install PyAudio
2. winpip install PyAudio
3. Устанавливать библиотеку в самой PyCharm
При установке в PyCharm пишет вот какую ошибку:
Collecting PyAudio
Using cached PyAudio-0.2.11.tar.gz (37 kB)
Using legacy ‘setup.py install’ for PyAudio, since package ‘wheel’ is not installed.
Installing collected packages: PyAudio
Running setup.py install for PyAudio: started
Running setup.py install for PyAudio: finished with status ‘error’
DEPRECATION: The -b/—build/—build-dir/—build-directory option is deprecated. pip 20.3 will remove support for this functionality. A possible replacement is use the TMPDIR/TEMP/TMP environment variable, possibly combined with —no-clean. You can find discussion regarding this at https://github.com/pypa/pip/issues/8333.
ERROR: Command errored out with exit status 1:
command: ‘C:\Users\Яков\PycharmProjects\Gera\venv\Scripts\python.exe’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘»‘»‘C:\\Users\\Яков\\AppData\\Local\\Temp\\pycharm-packaging\\pyaudio\\setup.py'»‘»‘; __file__='»‘»‘C:\\Users\\Яков\\AppData\\Local\\Temp\\pycharm-packaging\\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:\Users\Яков\AppData\Local\Temp\pip-record-7xrt9j1_\install-record.txt’ —single-version-externally-managed —compile —install-headers ‘C:\Users\Яков\PycharmProjects\Gera\venv\include\site\python3.9\PyAudio’
cwd: C:\Users\Яков\AppData\Local\Temp\pycharm-packaging\pyaudio\
Complete output (17 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-3.9
copying src\pyaudio.py -> build\lib.win32-3.9
warning: build_py: byte-compiling is disabled, skipping.
running build_ext
building ‘_portaudio’ extension
creating build\temp.win32-3.9
creating build\temp.win32-3.9\Release
creating build\temp.win32-3.9\Release\src
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\Яков\PycharmProjects\Gera\venv\include -IC:\Users\Яков\AppData\Local\Programs\Python\Python39-32\include -IC:\Users\Яков\AppData\Local\Programs\Python\Python39-32\include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include /Tcsrc/_portaudiomodule.c /Fobuild\temp.win32-3.9\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\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x86\\cl.exe’ failed with exit code 2
—————————————-
ERROR: Command errored out with exit status 1: ‘C:\Users\Яков\PycharmProjects\Gera\venv\Scripts\python.exe’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘»‘»‘C:\\Users\\Яков\\AppData\\Local\\Temp\\pycharm-packaging\\pyaudio\\setup.py'»‘»‘; __file__='»‘»‘C:\\Users\\Яков\\AppData\\Local\\Temp\\pycharm-packaging\\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:\Users\Яков\AppData\Local\Temp\pip-record-7xrt9j1_\install-record.txt’ —single-version-externally-managed —compile —install-headers ‘C:\Users\Яков\PycharmProjects\Gera\venv\include\site\python3.9\PyAudio’ Check the logs for full command output.
Я так же пробовал много других команд для pip но ничего не получалось! Скажите как это исправить?
Почему не устанавливается библиотека PyAudio?
Здравствуйте!
Сразу скажу что пробовал:
1. pip install PyAudio
2. winpip install PyAudio
3. Устанавливать библиотеку в самой PyCharm
При установке в PyCharm пишет вот какую ошибку:
Collecting PyAudio
Using cached PyAudio-0.2.11.tar.gz (37 kB)
Using legacy ‘setup.py install’ for PyAudio, since package ‘wheel’ is not installed.
Installing collected packages: PyAudio
Running setup.py install for PyAudio: started
Running setup.py install for PyAudio: finished with status ‘error’
DEPRECATION: The -b/—build/—build-dir/—build-directory option is deprecated. pip 20.3 will remove support for this functionality. A possible replacement is use the TMPDIR/TEMP/TMP environment variable, possibly combined with —no-clean. You can find discussion regarding this at https://github.com/pypa/pip/issues/8333.
ERROR: Command errored out with exit status 1:
command: ‘C:\Users\Яков\PycharmProjects\Gera\venv\Scripts\python.exe’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘»‘»‘C:\\Users\\Яков\\AppData\\Local\\Temp\\pycharm-packaging\\pyaudio\\setup.py'»‘»‘; __file__='»‘»‘C:\\Users\\Яков\\AppData\\Local\\Temp\\pycharm-packaging\\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:\Users\Яков\AppData\Local\Temp\pip-record-7xrt9j1_\install-record.txt’ —single-version-externally-managed —compile —install-headers ‘C:\Users\Яков\PycharmProjects\Gera\venv\include\site\python3.9\PyAudio’
cwd: C:\Users\Яков\AppData\Local\Temp\pycharm-packaging\pyaudio\
Complete output (17 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-3.9
copying src\pyaudio.py -> build\lib.win32-3.9
warning: build_py: byte-compiling is disabled, skipping.
running build_ext
building ‘_portaudio’ extension
creating build\temp.win32-3.9
creating build\temp.win32-3.9\Release
creating build\temp.win32-3.9\Release\src
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\Яков\PycharmProjects\Gera\venv\include -IC:\Users\Яков\AppData\Local\Programs\Python\Python39-32\include -IC:\Users\Яков\AppData\Local\Programs\Python\Python39-32\include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include /Tcsrc/_portaudiomodule.c /Fobuild\temp.win32-3.9\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\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x86\\cl.exe’ failed with exit code 2
—————————————-
ERROR: Command errored out with exit status 1: ‘C:\Users\Яков\PycharmProjects\Gera\venv\Scripts\python.exe’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘»‘»‘C:\\Users\\Яков\\AppData\\Local\\Temp\\pycharm-packaging\\pyaudio\\setup.py'»‘»‘; __file__='»‘»‘C:\\Users\\Яков\\AppData\\Local\\Temp\\pycharm-packaging\\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:\Users\Яков\AppData\Local\Temp\pip-record-7xrt9j1_\install-record.txt’ —single-version-externally-managed —compile —install-headers ‘C:\Users\Яков\PycharmProjects\Gera\venv\include\site\python3.9\PyAudio’ Check the logs for full command output.
Я так же пробовал много других команд для pip но ничего не получалось! Скажите как это исправить?
Не могу установить библиотеку PyAudio
Не могу установить библиотеку PyAudio
Никак не могу установить библиотеку PyAudio. Пишу: pip3 install PyAudio Выдаёт ошибку: .
не могу установить библиотеку
Собственно запускаю командную строку. пишу в ней pip install requests.Выдает мнеpython.exe.
Не могу установить библиотеку Python
Всем привет. Зарегистрировался с надеждой найти ответ. Не могу установить библиотеку Python -.
Захотел я установить библиотеку, а получил не библиотеку — под катом
Захотел я установить библиотеку premailer, как обычно через pip устанавливаю, окно консоли.
Переводчиком пользоваться умеешь?
Добавлено через 1 минуту
Заказываю контрольные, курсовые, дипломные и любые другие студенческие работы здесь или здесь.
Не могу установить PyAudio
Добрый день.При установке библиотеки PyAudio через pip командная строка выдает вот такую ошибку.
Не могу установить библиотеку Pillow
Для работы надо установить библиотеку Pillow. Следовал инструкции: ввел в командную строку Windows.
Не могу установить библиотеку RxLib
не магу установить библеотеку RxLib хотя все делаю строго по инструкции при открытии файлов .
Не могу установить библиотеку PCRE
На скринах установленные библиотеки и ошибка. Компилю код из вики.
Не могу установить библиотеку opencv
Получаю такую ошибку: Устанавливаю вроде правильно, уже много раз пытался сделать по видео и.
Не могу установить PyAutoGui.(и другие библиотеки типу pyaudio)Как исправить?
1\AppData\Local\Temp\tmpzlhfeyvk’
cwd: C:\Users\758C
1\AppData\Local\Temp\pip-install-a5yaxmq2\pymsgbox
Complete output (14 lines):
running dist_info
creating C:\Users\758C
1\AppData\Local\Temp\pip-modern-metadata-30qswr79\PyMsgBox.egg-info
writing C:\Users\758C
1\AppData\Local\Temp\pip-modern-metadata-30qswr79\PyMsgBox.egg-info\PKG-INFO
writing dependency_links to C:\Users\758C
1\AppData\Local\Temp\pip-modern-metadata-30qswr79\PyMsgBox.egg-info\dependency_links.txt
writing top-level names to C:\Users\758C
1\AppData\Local\Temp\pip-modern-metadata-30qswr79\PyMsgBox.egg-info\top_level.txt
writing manifest file ‘C:\Users\758C
1\AppData\Local\Temp\pip-modern-metadata-30qswr79\PyMsgBox.egg-info\SOURCES.txt’
reading manifest file ‘C:\Users\758C
1\AppData\Local\Temp\pip-modern-metadata-30qswr79\PyMsgBox.egg-info\SOURCES.txt’
reading manifest template ‘MANIFEST.in’
Error in sitecustomize; set PYTHONVERBOSE for traceback:
SyntaxError: (unicode error) ‘utf-8’ codec can’t decode byte 0xf0 in position 0: invalid continuation
byte (sitecustomize.py, line 7)
warning: no files found matching ‘*.py’ under directory ‘pymsgbox’
writing manifest file ‘C:\Users\758C
1\AppData\Local\Temp\pip-modern-metadata-30qswr79\PyMsgBox.egg-info\SOURCES.txt’
creating ‘C:\Users\758C
1\AppData\Local\Temp\pip-modern-metadata-30qswr79\PyMsgBox.dist-info’
error: invalid command ‘bdist_wheel’
—————————————-
ERROR: Command errored out with exit status 1: ‘C:\Users\Ростік\AppData\Local\Programs\Python\Python37-32\python.exe’ ‘C:\Users\Ростік\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pip\_vendor\pep517\_in_process.py’ prepare_metadata_for_build_wheel ‘C:\Users\758C
1\AppData\Local\Temp\tmpzlhfeyvk’ Check
the logs for full command output.