我可以在python3中导入alsaaudio吗?

时间:2019-05-16 05:21:13

标签: python pyalsaaudio

当我尝试使用pip安装pyalsaudio时,出现以下错误:

C:\Users\RAMOS>pip install pyalsaaudio
Collecting pyalsaaudio
  Using cached https://files.pythonhosted.org/packages/52/b6/44871791929d9d7e11325af0b7be711388dfeeab17147988f044a41a6d83/pyalsaaudio-0.8.4.tar.gz
Installing collected packages: pyalsaaudio
  Running setup.py install for pyalsaaudio ... error
    ERROR: Complete output from command 'c:\users\ramos\appdata\local\programs\python\python36\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\RAMOS\\AppData\\Local\\Temp\\pip-install-0y57yb_9\\pyalsaaudio\\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\RAMOS\AppData\Local\Temp\pip-record-w8o8qwjg\install-record.txt' --single-version-externally-managed --compile:
    ERROR: running install
    running build
    running build_ext
    building 'alsaaudio' extension
    error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
    ----------------------------------------
ERROR: Command "'c:\users\ramos\appdata\local\programs\python\python36\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\RAMOS\\AppData\\Local\\Temp\\pip-install-0y57yb_9\\pyalsaaudio\\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\RAMOS\AppData\Local\Temp\pip-record-w8o8qwjg\install-record.txt' --single-version-externally-managed --compile" failed with error code 1 in C:\Users\RAMOS\AppData\Local\Temp\pip-install-0y57yb_9\pyalsaaudio\

0 个答案:

没有答案