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
安装时报错:
ERROR: 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
- Update warpt
pip install --ignore-installed wrapt
2. Update setuptools
pip install --ignore-installed setuptools
3. Install tensorflow, an error message appears at this time is not a
pip install -U tensorflow -i https://pypi.tuna.tsinghua.edu.cn/simple
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":