Installing an exception solve Tensorflow2.0

Use command to install the CPU version of the command is:
use of domestic Tsinghua source installation TensorFlow CPU version

pip install -U tensorflow -i https://pypi.tuna.tsinghua.edu.cn/simple

安装时报错:
Here Insert Picture DescriptionHere Insert Picture DescriptionERROR: google-auth 1.10.0 has requirement setuptools>=40.3.0, but you’ll have setuptools 40.2.0 which is incompatible.
ERROR: tensorboard 2.0.2 has requirement setuptools>=41.0.0, but you’ll have setuptools 40.2.0 which is incompatible.
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.

Solution
  1. Update warpt
pip install --ignore-installed wrapt

Here Insert Picture Description
2. Update setuptools

pip install --ignore-installed  setuptools

Here Insert Picture Description3. Install tensorflow, an error message appears at this time is not a

pip install -U tensorflow -i https://pypi.tuna.tsinghua.edu.cn/simple

Here Insert Picture Description
After installation, enter "import tensorflow as tf" in python interactive environment in order to verify whether the CPU version of the installation was successful.
TensorFlow CPU version after the installation is complete, you can "TF. Version View TensorFlow locally installed version number":
Here Insert Picture Description

Released seven original articles · won praise 1 · views 553

Guess you like

Origin blog.csdn.net/qq_40247920/article/details/103892696