今天安裝 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
就成功解決了。