conda安裝程序的時候寶 requests 錯誤

在運行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

問題解決了。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章