1 . Please make sure that your anaconda , python, and tensorflow have the right versions. Anaconda5.3 with python3.7 is recommended.
version of anaconda and python: https://blog.csdn.net/yuejisuo1948/article/details/81043823
version of tensorflow and python:https://blog.csdn.net/qq_39146122/article/details/106449852
2. Download anaconda5.3.0 with python 3.7.0
https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/
3. Install anaconda. Get into the download path and run:
bash Anaconda3-5.3.0-Linux-x86_64.sh
(enter yes except the last question )
source ~/.bashrc
4. Download tensorflow1.14
https://pypi.org/project/tensorflow/#files
5. Install tensorflow. Get into the download and run :
pip install tensorflow-1.14.0-cp37-cp37m-manylinux1_x86_64.whl
Then got errors:
distributed 1.23.1 has requirement click>=6.6, but you'll have click 6.2 which is incompatible. (solved by : pip install --upgarde click )
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.
(solved by : pip install -U --ignore-installed wrapt enum34 simplejson netaddr )
At last, run pip install tensorflow-1.14.0-cp37-cp37m-manylinux1_x86_64.whl again.