0
点赞
收藏
分享

微信扫一扫

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

kiliwalk 2022-08-12 阅读 145


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

wugaosheng@s206:~$ pip3 install librosa
Collecting librosa
Downloading http://mirrors.aliyun.com/pypi/packages/77/b5/1817862d64a7c231afd15419d8418ae1f000742cac275e85c74b219cbccb/librosa-0.7.2.tar.gz (1.6MB)
100% |████████████████████████████████| 1.6MB 12.0MB/s
Collecting audioread>=2.0.0 (from librosa)
Downloading http://mirrors.aliyun.com/pypi/packages/2e/0b/940ea7861e0e9049f09dcfd72a90c9ae55f697c17c299a323f0148f913d2/audioread-2.1.8.tar.gz
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 "<string>", line 1, in <module>
File "/tmp/pip-build-wobk5glq/audioread/setup.py", line 58, in <module>
'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-runner
pip3 install librosa

参考文献

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

举报

相关推荐

0 条评论