最近再升级 pyserial模块时,采用 pip install --upgrade pyserial,待模块下载完成准备卸载原版本时
提示:“Cannot uninstall 'pyserial'. 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.
”
然后再强制去卸载时也报同样错误,在网上找了一些方法,经试过下面的方法可解决问题:
pip install --ignore-install pyserial 完美解决升级问题