ubuntu 安装librosa的时候出现No matching distribution found for pytest-runner

网友投稿 1333 2022-08-22

ubuntu 安装librosa的时候出现No matching distribution found for pytest-runner

ubuntu 安装librosa的时候出现No matching distribution found for pytest-runner

今天在安装librosa的时候出现了下面的错误:

wugaosheng@s206:~$ pip3 install librosaCollecting librosa Downloading (1.6MB) 100% |████████████████████████████████| 1.6MB 12.0MB/sCollecting audioread>=2.0.0 (from librosa) Downloading Complete output from command python setup.py egg_info: Could not find a version that satisfies the requirement pytest-runner (from versions: ) No matching distribution found for pytest-runner Traceback (most recent call last): File "/home/wugaosheng/.local/lib/python3.6/site-packages/setuptools/installer.py", line 128, in fetch_build_egg subprocess.check_call(cmd) File "/usr/lib/python3.6/subprocess.py", line 311, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpg2yxsb59', '--quiet', 'pytest-runner']' returned non-zero exit status 1. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "", line 1, in File "/tmp/pip-build-wobk5glq/audioread/setup.py", line 58, in 'Programming Language :: Python :: 3.6', File "/home/wugaosheng/.local/lib/python3.6/site-packages/setuptools/__init__.py", line 143, in setup _install_setup_requires(attrs) File "/home/wugaosheng/.local/lib/python3.6/site-packages/setuptools/__init__.py", line 138, in _install_setup_requires dist.fetch_build_eggs(dist.setup_requires) File "/home/wugaosheng/.local/lib/python3.6/site-packages/setuptools/dist.py", line 721, in fetch_build_eggs replace_conflicting=True, File "/home/wugaosheng/.local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 783, in resolve replace_conflicting=replace_conflicting File "/home/wugaosheng/.local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1066, in best_match return self.obtain(req, installer) File "/home/wugaosheng/.local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1078, in obtain return installer(requirement) File "/home/wugaosheng/.local/lib/python3.6/site-packages/setuptools/dist.py", line 777, in fetch_build_egg return fetch_build_egg(self, req) File "/home/wugaosheng/.local/lib/python3.6/site-packages/setuptools/installer.py", line 130, in fetch_build_egg raise DistutilsError(str(e)) distutils.errors.DistutilsError: Command '['/usr/bin/python3', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpg2yxsb59', '--quiet', 'pytest-runner']' returned non-zero exit status 1. ----------------------------------------Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-wobk5glq/audioread/

解决方法

pip3 install pytest-runnerpip3 install librosa

参考文献

[1].pytest-runner 5.2. ​​https://pypi.org/project/pytest-runner/​​

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:ubuntu 18.04检查服务器异常重启的日志
下一篇:ubuntu18.04安装了anaconda的后,让.bashrc文件在终端自动生效
相关文章

 发表评论

暂时没有评论,来抢沙发吧~