Command errored out with exit status 1: python setup.py egg_info Check the logs for command output

目录

0.环境

1.报错情景

2.报错解决


0.环境

windows 11 64位,用【MobaXterm】工具运行了【ubuntu】的虚拟机

1.报错情景

在做项目过程中,想用【Uvicorn】实现python搭建的异步web服务器,所以需要在ubuntu的虚拟机上先下载安装【Uvicorn】

具体安装命令:

【注】管理员用户 或 sudo执行

pip install uvicorn

但是我执行后给我报错,报错截图如下:

Command errored out with exit status 1: python setup.py egg_info Check the logs for command output_第1张图片

报错的意思应该是版本问题,在网上搜索了不少解决方式,但是我这边执行后都没有解决

参考网站(未能解决我的问题,但有可能解决你的问题):

Python Setup.py egg_info失败,错误代码为 1?[修复] - 迷你工具分区向导 (partitionwizard.com)

然后我又找了其他的办法,经测试后,解决我的Uvicorn安装问题

2.报错解决

思路:我的解决办法是升级pip版本

命令(管理员或sudo运行):

python3 -m pip install --upgrade pip

然后我再用命令安装Uvicorn,就提示安装成功了!

Command errored out with exit status 1: python setup.py egg_info Check the logs for command output_第2张图片

特此分享记录

--END--

你可能感兴趣的:(Linux,python,开发语言)