当前位置:网站首页>Command errored out with exit status 1类似问题解决方案
Command errored out with exit status 1类似问题解决方案
2022-08-03 05:27:00 【寻找永不遗憾】
在使用pip install onnx时遇到如下错误:
Building wheels for collected packages: onnx
Building wheel for onnx (setup.py) … error
ERROR: Command errored out with exit status 1:
command: /home/users/yuxuan.wei/env/env1/bin/python -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-t2jk_rl6/onnx_460e3fe0fd4241829e6bd153039e173b/setup.py’“'”‘; file=’“'”‘/tmp/pip-install-t2jk_rl6/onnx_460e3fe0fd4241829e6bd153039e173b/setup.py’“'”‘;f = getattr(tokenize, ‘"’“‘open’”’“‘, open)(file) if os.path.exists(file) else io.StringIO(’”‘“‘from setuptools import setup; setup()’”’“‘);code = f.read().replace(’”‘"’\r\n’“'”‘, ‘"’"’\n’“'”‘);f.close();exec(compile(code, file, ‘"’“‘exec’”’"‘))’ bdist_wheel -d /tmp/pip-wheel-foccssk2
一堆提示,提炼定位到ERROR: Command errored out with exit status 1:,安装包的版本和Python版本不匹配的报错,如何解决呢?
使用命令查看Python版本:
python -V

到Python装包网站上去搜对应包的版本即可,例子如下:
边栏推荐
猜你喜欢
随机推荐
DNS常见资源记录类型详解
Use of Alibaba Cloud SMS Service (create, test notes)
SVN客户端安装及操作文档
g++ parameter description
使用Blender和ZBrush制作武器模型
CPU上下文切换详解思维导图
Unity Animation从UAS获取动画资产到编制状态机控制简单的人物动画
在Zabbix5.4上使用ODBC监控Oracle数据库
Migration of BOA Server
申请公网ip后,配置光猫,路由器使用公网ip步骤
Prometheus监控容器、pod、邮件告警
关于C语言中getchar()函数的用法
数组与字符串14-使用双指针移除元素
SVN账号配置权限
大佬!Maya+ZBrush+Substance制作泰坦野兽全流程!
find命令、sort命令、uniq命令
NIO知识汇总 收藏这一篇就够了!!!
SSL证书验证怎么做?有几种方式?
Redis哨兵模式+过期策略、淘汰策略、读写策略
二分查找6 - 寻找峰值









