在運行python樣例的時候,需要用到 wxpython 庫, pip安裝編譯失敗,轉線到 conda安裝, 結果報錯:
Preparing transaction: done
Verifying transaction: failed
RemoveError: 'requests' is a dependency of conda and cannot be removed from
conda's operating environment.
根據conda 的 issue 討論中找到解決方案:
conda update --force conda
其中有一句提示可能將來需要注意:
WARNING: The --force flag will be removed in a future conda release.
See 'conda update --help' for details about the --force-reinstall
and --clobber flags.
後面運行安裝 wxpython ,問題沒有了。
conda install wxpython
問題解決了。