今天安装 serial
时报错:
ERROR: Cannot uninstall 'PyYAML'. 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 .
错误:无法卸载“ PyYAML”。 这是一个distutils安装的项目,因此我们
无法准确确定哪些文件属于该文件,这将导致
仅部分卸载
我的环境:win10、py3.6
解决办法:
报错 Cannot uninstall 'abcd',那就 pip install --ignore-installed abcd
因为我报错 Cannot uninstall 'PyYAML'
,所以
pip install --ignore-installed pyyaml
#Successfully installed pyyaml-5.3.1
'安装完成后,再下载自己想要下载的包'
pip install serial
#Successfully installed iso8601-0.1.12 serial-0.0.97
就成功解决了。