1. 程式人生 > 其它 >ERROR: Cannot uninstall ‘wrapt‘. It is a distutils installed project and thus we cannot accurately..

ERROR: Cannot uninstall ‘wrapt‘. It is a distutils installed project and thus we cannot accurately..

技術標籤:深度學習Pythontensorflowpython

1.問題描述

pip install tensorflow 報錯:ERROR: Cannot uninstall 'wrapt'. 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.

2.解決辦法

(1)手動安裝wrapt,並新增引數 --ignore-installed

pip install wrapt --ignore-installed

(2) 再次安裝tensorflow 就不會報錯了

pip install tensorflow