手动删除apt安装的python出现问题

/var/lib/dpkg/info/python3-pip.prerm: 6: py3clean: not found

dpkg: error processing package python3-pip (--remove):

installed python3-pip package pre-removal script subprocess returned error exit status 127

dpkg: too many errors, stopping

/var/lib/dpkg/info/python3-pip.postinst: 6: py3compile: not found

dpkg: error while cleaning up:

installed python3-pip package post-installation script subprocess returned error exit status 127

Errors were encountered while processing:

python3-pip

Processing was halted because there were too many errors.

E: Sub-process /usr/bin/dpkg returned an error code (1)

解决方法

sudo apt-get update

sudo apt-get upgrade

sudo apt --fix-broken install

dpkg --configure -a

apt-get download python3-minimal

sudo dpkg -i *python3*.deb

sudo apt-get -f install

sudo apt-get install python3-pip

sudo pip3 install pyserial

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值