python無法安裝pyaudio模組

2022-03-18 19:25:58 字數 1280 閱讀 6542

e:\mycode\資料檢視器\data_viewer>pip install pyaudio

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 ... error

error: command errored out with exit status 1:

f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))'

complete output (9 lines):

running install

running build

running build_py

creating build

creating build\lib.win-amd64-3.7

copying src\pyaudio.py -> build\lib.win-amd64-3.7

running build_ext

building '_portaudio' extension

error: microsoft visual c++ 14.0 is required. get it with "microsoft visual c++ build tools":

----------------------------------------

g0ipaimi\\pyaudio\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(

在windows上沒有python3.7的預構建包(輪子),有乙個用於python 2.7和3.4到3.6,因此需要在pc上準備構建環境以使用此包。因為有些軟體包很難在windows上構建,所以找到3.7的輪子更容易一些。

python無法匯入安裝的包

from distutils.sysconfig import get python lib print get python lib 這個命令是檢視當前python匯入包的資料夾,但是很坑爹的,不知道不,如果編譯器用的是eclipse自帶的話,也是可以列印出來的,這應該是環境配置中的設定有關係的。...

python3 7無法安裝pyaudio?

習慣了用pip安裝python模組的人,今天試了一下安裝pyaudio。首先看官網,what?當時安裝anaconda tensorflow時候,已經把python公升級到3.7,現在用pip安裝pyaudio還不支援3.7.如果你用pip install pyaudio 提示error micro...

python3無法安裝PIL

python3安裝pil的時候顯示無法找到相對應的版本 pil是python2的庫 pillow才能支援python3 關於pillow與pil pil python imaging library 是python乙個強大方便的影象處理庫,名氣也比較大。不過只支援到python 2.7。pillow...