tensorflow: ERROR: Cannot uninstall 'wrapt'. during upgrade
System information
- OS Platform and Distribution (e.g., Linux Ubuntu 19.04 on Sony notebook):
- TensorFlow version:
python
Python 3.6.3 |Anaconda, Inc.| (default, Oct 13 2017, 12:02:49)
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
/home/ronald/anaconda3/lib/python3.6/site-packages/h5py/__init__.py:34: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
>>> print(tf.__version__)
2.0.0-alpha0
Describe the problem
I try to upgrade to beta1 with:
install tensorflow==2.0.0-beta1
at the end I get:
Installing collected packages: wrapt, tensorflow
Found existing installation: wrapt 1.10.11
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.
How to fix it?
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 17
- Comments: 63
This worked for me:
pip install wrapt --upgrade --ignore-installedpip install tensorflowI fixed it by:
Above solutions are not worked for me. So I remove the `wrapt’ by conda operation.
conda remove wraptAnd, it worked.
pip install tensorflowEnv: Windows 10
try
conda update wraptThis worked for me pip install wrapt --upgrade --ignore-installed pip install tensorflow
pip install wrapt --upgrade --ignore-installed pip install tensorflow This worked for me too,Thanks.
It works for me. Thanks.
This worked for me.
conda update --all pip install tensorflow
It didn’t work for me. Still getting that error.
It didn’t work for me. Still getting that error.
Edit: Fixed it by installing tensorflow 1.14 first then updating it to version 2.0
This worked for me. I am using Jupyter notebook (OD: Ubuntu 16.0) all the commands running from the notebook:
At the time of installing tensor flow I got following two errors. The errors and solutions are: ERROR 1: 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.
Solution: run following command !conda remove wrapt --yes
ERROR 2: tensorboard 1.14.0 has requirement setuptools>=41.0.0 Solution: run following command to solve this error !pip uninstall -y setuptools
!pip install setuptools>=41.0.0
Now install tensorflow: !pip install tensorflow
@rickykim93 you are awesome… I love you…
Hi, I had this problem in Raspberry Pi and your procedure worked for me. Thank you.
It worked for me. Thanks a lot.
None of the solutions worked for me. I am always getting
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.and withconda remove wraptI getRemoveError: 'setuptools' is a dependency of conda and cannot be removed from conda's operating environment.env: Mac OS 10.14.5