当我尝试使用pip安装pyaudio时,它说它已经安装(因为我之前在pycharm上安装了它)。我现在使用Visual Studio Code作为我的IDE。在终端中输入pipwin install pyaudio
时,出现以下错误消息:
Package
pyaudio found in cache Downloading package . . . https://download.lfd.uci.edu/pythonlibs/w3jqiv8s/PyAudio-0.2.11-cp38-cp38-win32.whl PyAudio-0.2.11-cp38-cp38-win32.whl File C:\Users\aarti\pipwin\PyAudio-0.2.11-cp38-cp38-win32.whl already exists Processing c:\users\aarti\pipwin\pyaudio-0.2.11-cp38-cp38-win32.whl Installing collected packages: PyAudio Attempting uninstall: PyAudio Found existing installation: PyAudio 0.2.8 ERROR: Cannot uninstall 'PyAudio'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall. Traceback (most recent call last): File "c:\users\aarti\appdata\local\programs\python\python38-32\lib\runpy.py", line 194, in _run_module_as_main File "c:\users\aarti\appdata\local\programs\python\python38-32\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\aarti\AppData\Local\Programs\Python\Python38-32\Scripts\pipwin.exe\__main__.py", line 7, in <module> File "c:\users\aarti\appdata\local\programs\python\python38-32\lib\site-packages\pipwin\command.py", line 98, in main cache.install(package) File "c:\users\aarti\appdata\local\programs\python\python38-32\lib\site-packages\pipwin\pipwin.py", line 301, in install subprocess.check_call([executable, "-m", "pip", "install", wheel_file]) File "c:\users\aarti\appdata\local\programs\python\python38-32\lib\subprocess.py", line 364, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['c:\\users\\aarti\\appdata\\local\\programs\\python\\python38-32\\python.exe', '-m', 'pip', 'install', 'C:\\Users\\aarti\\pipwin\\PyAudio-0.2.11-cp38-cp38-win32.whl']' returned non-zero exit status 1.
我尝试卸载pycharm,但这也无法正常工作。有人可以帮忙吗?