Python 尝试将pyaudio导入pycharm时出现问题

Python 尝试将pyaudio导入pycharm时出现问题,python,pip,pycharm,pyaudio,Python,Pip,Pycharm,Pyaudio,每当我尝试为Pycharm导入任何类型的插件时,我都会收到一个错误,我尝试了许多方法来解决这个问题,如: 一,。更新pip 二,。编辑路径 三,。确保有一个版本的python 3已完全更新并与Pycharm集成 四,。下载windows可视代码 五,。确保解释器已同步 以下是更直观表示的错误: ERROR: Command errored out with exit status 1: command: 'c:\users\temne\appdata\local\programs\py

每当我尝试为Pycharm导入任何类型的插件时,我都会收到一个错误,我尝试了许多方法来解决这个问题,如:

一,。更新pip

二,。编辑路径

三,。确保有一个版本的python 3已完全更新并与Pycharm集成

四,。下载windows可视代码

五,。确保解释器已同步

以下是更直观表示的错误:

ERROR: Command errored out with exit status 1:
     command: 'c:\users\temne\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\temne\\AppData\\Local\\Temp\\pip-install-yljd37i3\\pyaudio\\setup.py'"'"'; __file__='"'"'C:\\Users\\temne\\AppData\\Local\\Temp\\pip-install-yljd37i3\\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\temne\AppData\Local\Temp\pip-record-nllhhklr\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\temne\appdata\local\programs\python\python38-32\Include\pyaudio'
         cwd: C:\Users\temne\AppData\Local\Temp\pip-install-yljd37i3\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 -Ic:\users\temne\appdata\local\programs\python\python38-32\include -Ic:\users\temne\appdata\local\programs\python\python38-32\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" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /Tcsrc/_portaudiomodule.c /Fobuild\temp.win32-3.8\Release\src/_portaudiomodule.obj
    _portaudiomodule.c
    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\\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: 'c:\users\temne\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\temne\\AppData\\Local\\Temp\\pip-install-yljd37i3\\pyaudio\\setup.py'"'"'; __file__='"'"'C:\\Users\\temne\\AppData\\Local\\Temp\\pip-install-yljd37i3\\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\temne\AppData\Local\Temp\pip-record-nllhhklr\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\temne\appdata\local\programs\python\python38-32\Include\pyaudio' Check the logs for full command output.

是否有我仍然缺少或未配置的内容?我目前仍在进行这方面的工作,如果您想在PyCharm中导入软件包,请仔细阅读以下内容: 设置/首选项->项目->项目解释器,然后单击底部的+键,然后搜索所需的软件包

但如果您想要插件,请通过: 设置/首选项->插件


我刚刚检查了软件包,pyaudio在那里可用。

我在尝试这样做时也遇到了一个错误