当前位置:网站首页>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装包网站上去搜对应包的版本即可,例子如下:
边栏推荐
猜你喜欢
随机推荐
【随笔】我为啥想写无关紧要的随笔?
域名注册流程:如何选择购买合适的域名?
什么是次世代建模,为什么这么多建模人在学习次世代建模流程
802.1AS 时钟同步原理理解
contos安装php-ffmpeg和tp5.1使用插件
BOA服务器移植之嵌入式开发板(FS4412)
Oracle常用命令-基本命令
2. What is the difference between Exception and Error?
3. What is the difference between final, finally, and finalize?
ZEMAX | How to rotate any element around any point in space
二分查找1-实现一个二分查找
DNS常见资源记录类型详解
ue4学习日记4(植被,光照,光束遮挡,天空球)
【3D建模制作技巧分享】ZBrush快捷键如何设置
次世代建模到底需要哪些美术基础
Automatic ticket issuance based on direct reduction of China Southern Airlines app
Podman can learn in one piece
数组与字符串10-实现 strStr()
VS Project Configuration Manager
关于C语言中getchar()函数的用法









