当前位置:网站首页>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装包网站上去搜对应包的版本即可,例子如下:
边栏推荐
猜你喜欢
随机推荐
TFS(AzureDevOps)取消离职人员的签出项
php 数组元素移动
VI和VIM编辑指令
用DirectX12绘制一个几何体的程序详述
数组与字符串10-实现 strStr()
【C语言】关于数组传参问题/首地址
【随笔】小马过河
appium(3)webview测试
Windos 内网渗透之Token的使用
Nvidia NX使用向日葵远程桌面遇到的问题
C # to switch input method
TFS(Azure DevOps)禁止多人同时签出
Prometheus monitors container, pod, email alerts
2-php学习笔记之控制语句,函数
【随笔】我为啥想写无关紧要的随笔?
Oracle常用命令-基本命令
802.1AS的BMCA(最佳主时钟选举)理解
MySQL master-slave replication
申请公网ip后,配置光猫,路由器使用公网ip步骤
【面试】摸鱼快看:关于selenium/ui自动化的面试题