pip 安装报错 find a version that satisfies the requirement pytest-runner

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 安装失败

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值