pip 安装mmcv 报错
ERROR: Command errored out with exit status 1:
command: /home/ysh/anaconda3/envs/open-mmlab/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-8axp1xbm/mmcv-full_98babae793f94007a3cd73fa127ad58d/setup.py'"'"'; __file__='"'"'/tmp/pip-install-8axp1xbm/mmcv-full_98babae793f94007a3cd73fa127ad58d/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-tsqehzzo
cwd: /tmp/pip-install-8axp1xbm/mmcv-full_98babae793f94007a3cd73fa127ad58d/
Complete output (35 lines):
Compiling ./mmcv/video/optflow_warp/flow_warp_module.pyx because it depends on /home/ysh/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/numpy/__init__.pxd.
[1/1] Cythonizing ./mmcv/video/optflow_warp/flow_warp_module.pyx
WARNING: The repository located at mirrors.aliyun.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host mirrors.aliyun.com'.
ERROR: Could not find a version that satisfies the requirement pytest-runner
ERROR: No matching distribution found for pytest-runner
Traceback (most recent call last):
File "/home/ysh/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/setuptools/installer.py", line 75, in fetch_build_egg
subprocess.check_call(cmd)
File "/home/ysh/anaconda3/envs/open-mmlab/lib/python3.7/subprocess.py", line 363, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/ysh/anaconda3/envs/open-mmlab/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpuqzx4fw0', '--quiet', 'pytest-runner']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
猜测
ERROR: Could not find a version that satisfies the requirement pytest-runner
ERROR: No matching distribution found for pytest-runner
这里出了问题
原因是pytest-runner的版本找不到,使用
pip install --user pytest-runner
参考链接 pip install pydruid失败的解决方法
期间我还找到别的可能解决问题的方法
这个对我没用 但可能对你们有用
[ 已解决] pytest 安装失败