安装mmcv出错ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for f

在新电脑上通过pip安装mmcv时出现错误,提示找不到pytest-runner的版本。解决方案是先手动安装pytest-runner,然后再次尝试安装mmcv。具体步骤为:先运行`pip install pytest-runner -i http://pypi.douban.com/simple --trusted-host pypi.douban.com`,再运行`pip install mmcv -i http://pypi.douban.com/simple --trusted-host pypi.douban.com`。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在新的电脑上安装mmcv按照以前pip 直接安装的时候报错了,解决方法。 

安装:pip install mmcv -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
Looking in indexes: http://pypi.douban.com/simple
Collecting mmcv
  Downloading http://pypi.doubanio.com/packages/20/24/18a1a702688ba311f57b00ff22e2194488bc36eb90ed80bb0adacfbc066f/mmcv-0.5.9.tar.gz (128 kB)
     |████████████████████████████████| 128 kB 6.4 MB/s
    ERROR: Command errored out with exit status 1:
     command: 'd:\bashsoft\anaconda\envs\torch\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ty\\AppData\\Local\\Temp\\pip-install-xgs29701\\mmcv\\setup.py'"'"'; __file__='"'"'C:\\Users\\ty\\AppData\\Local\\Temp\\pip-install-xgs29701\\mmcv\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --

评论 9
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值