ERROR: Cannot uninstall ‘Cython‘. It is a distutils installed project and thus we cannot accurately

ERROR: Cannot uninstall ‘Cython’. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall

报错的原因:
无法准确确定属于该文件的文件,这只会导致部分卸载。
一般是你安装的版本是新版的,需要uninstall旧版的,但是由于直接使用pip uninstall+ 库名 不能对其完全卸载,所以最粗暴的方法就是把旧版的文件直接删掉。
解决方法:进入/usr/local/lib/python3.6/dist-packages,找到相应的旧版文件,直接删掉就完事。
比如我遇到的这个问题:ERROR: Cannot uninstall cython.
进入site-packages,找到Cython-0.26.1.egg-info、cython.py与Cython这一文件,直接删掉再重装就ok

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值