概述
今天安装aubio的时候出现了错误,
pip install aubio
Failed to build aubio
Installing collected packages: aubio
Running setup.py install for aubio … - WARNING: Subprocess output does not appear to be encoded as cp936
WARNING: Subprocess output does not appear to be encoded as cp936
WARNING: Subprocess output does not appear to be encoded as cp936
WARNING: Subprocess output does not appear to be encoded as cp936
WARNING: Subprocess output does not appear to be encoded as cp936
WARNING: Subprocess output does not appear to be encoded as cp936
WARNING: Subprocess output does not appear to be encoded as cp936
WARNING: Subprocess output does not appear to be encoded as cp936
error
ERROR: Command errored out with exit status 1:
command: ‘D:SoftwareAnaconda3python.exe’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"‘C:UsersMECAppDataLocalTemppip-install-guhnkkmeaubiosetup.py’"’"’; file=’"’"‘C:UsersMECAppDataLocalTemppip-install-guhnkkmeaubiosetup.py’"’"’;f=getattr(tokenize, ‘"’"‘open’"’"’, open)(file);code=f.read().replace(’"’"’rn’"’"’, ‘"’"’n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ install --record ‘C:UsersMECAppDataLocalTemppip-record-14whrd6binstall-record.txt’ --single-version-externally-managed --compile --install-headers ‘D:SoftwareAnaconda3Includeaubio’
cwd: C:UsersMECAppDataLocalTemppip-install-guhnkkmeaubio
Complete output (65 lines):
running install
running build
running build_py
running build_ext
checking for aubio = 0.4.9
Running “pkg-config --libs --cflags aubio = 0.4.9” failed: FileNotFoundError(2, ‘绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆x82’, None, 2, None)
Info: aubio 0.4.9 was not found by pkg-config
Info: looking for optional additional packages
checking for libavcodec
Running “pkg-config --libs --cflags libavcodec” failed: FileNotFoundError(2, ‘绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆x82’, None, 2, None)
checking for libavformat
Running “pkg-config --libs --cflags libavformat” failed: FileNotFoundError(2, ‘绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆x82’, None, 2, None)
checking for libavutil
Running “pkg-config --libs --cflags libavutil” failed: FileNotFoundError(2, ‘绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆x82’, None, 2, None)
checking for libswresample
Running “pkg-config --libs --cflags libswresample” failed: FileNotFoundError(2, ‘绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆x82’, None, 2, None)
checking for libavresample
Running “pkg-config --libs --cflags libavresample” failed: FileNotFoundError(2, ‘绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆x82’, None, 2, None)
checking for sndfile
Running “pkg-config --libs --cflags sndfile” failed: FileNotFoundError(2, ‘绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆x82’, None, 2, None)
checking for samplerate
Running “pkg-config --libs --cflags samplerate” failed: FileNotFoundError(2, ‘绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆x82’, None, 2, None)
Info: libaubio was not installed or built locally with waf, adding src/
Running command: C:Program Files (x86)Microsoft Visual Studio2017CommunityVCToolsMSVC14.16.27023binHostX86x64cl.exe -E -DAUBIO_UNSTABLE=1 -Isrc srcaubio.h
Traceback (most recent call last):
File “”, line 1, in
File “C:UsersMECAppDataLocalTemppip-install-guhnkkmeaubiosetup.py”, line 95, in
‘aubiocut = aubio.cut:main’,
File “D:SoftwareAnaconda3libsite-packagessetuptools_init_.py”, line 144, in setup
return distutils.core.setup(**attrs)
File “D:SoftwareAnaconda3libdistutilscore.py”, line 148, in setup
dist.run_commands()
File “D:SoftwareAnaconda3libdistutilsdist.py”, line 966, in run_commands
self.run_command(cmd)
File “D:SoftwareAnaconda3libdistutilsdist.py”, line 985, in run_command
cmd_obj.run()
File “D:SoftwareAnaconda3libsite-packagessetuptoolscommandinstall.py”, line 61, in run
return orig.install.run(self)
File “D:SoftwareAnaconda3libdistutilscommandinstall.py”, line 545, in run
self.run_command(‘build’)
File “D:SoftwareAnaconda3libdistutilscmd.py”, line 313, in run_command
self.distribution.run_command(command)
File “D:SoftwareAnaconda3libdistutilsdist.py”, line 985, in run_command
cmd_obj.run()
File “D:SoftwareAnaconda3libdistutilscommandbuild.py”, line 135, in run
self.run_command(cmd_name)
File “D:SoftwareAnaconda3libdistutilscmd.py”, line 313, in run_command
self.distribution.run_command(command)
File “D:SoftwareAnaconda3libdistutilsdist.py”, line 985, in run_command
cmd_obj.run()
File “D:SoftwareAnaconda3libdistutilscommandbuild_ext.py”, line 340, in run
self.build_extensions()
File “D:SoftwareAnaconda3libdistutilscommandbuild_ext.py”, line 449, in build_extensions
self._build_extensions_serial()
File “D:SoftwareAnaconda3libdistutilscommandbuild_ext.py”, line 474, in _build_extensions_serial
self.build_extension(ext)
File “pythonlibmoresetuptools.py”, line 192, in build_extension
usedouble=enable_double)
File “pythonlibgen_external.py”, line 271, in generate_external
c_declarations = get_c_declarations(header, usedouble=usedouble)
File “pythonlibgen_external.py”, line 101, in get_c_declarations
cpp_output = get_cpp_output(header=header, usedouble=usedouble)
File “pythonlibgen_external.py”, line 129, in get_cpp_output
% err_output.decode(‘utf8’))
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xd3 in position 0: invalid continuation byte
----------------------------------------
ERROR: Command errored out with exit status 1: ‘D:SoftwareAnaconda3python.exe’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"‘C:UsersMECAppDataLocalTemppip-install-guhnkkmeaubiosetup.py’"’"’; file=’"’"‘C:UsersMECAppDataLocalTemppip-install-guhnkkmeaubiosetup.py’"’"’;f=getattr(tokenize, ‘"’"‘open’"’"’, open)(file);code=f.read().replace(’"’"’rn’"’"’, ‘"’"’n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ install --record ‘C:UsersMECAppDataLocalTemppip-record-14whrd6binstall-record.txt’ --single-version-externally-managed --compile --install-headers ‘D:SoftwareAnaconda3Includeaubio’ Check the logs for full command output.
然后查了一堆资料,csdn上也没有解决办法,于是找到了官方。
https://aubio.org/manual/latest/python_module.html
用pip install 安装aubio需要额外安装一个编译器(这在报错里的python setup.py可以看到),我的pip安装出现了错误,于是选择了conda安装的方式。
如下图这种方式:
安装成功!
最后
以上就是能干便当为你收集整理的python安装aubio。pip install aubio。 conda install aubio的全部内容,希望文章能够帮你解决python安装aubio。pip install aubio。 conda install aubio所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复