Centos installed TensorFlow and Keras

https://repo.anaconda.com/archive/Anaconda3-2019.03-Linux-x86_64.sh

# added by Anaconda3 4.4.0 installer
export PATH="/root/anaconda3/bin:$PATH"

After installation is complete, we came CMD console (under Windows), enter the following command to create a virtual environment.

conda create --name tensorflow python=3.*

Use the following command to activate the virtual environment

conda activate tensorflow

如下提示则表示进入了虚拟环境
(tensorflow) [root@VM_0_10_centos kerasdata]#

Use the following command to exit the virtual environment

conda  deactivate 

conda install tensorflow

conda install hard

run

import tensorflow as tf
import keras


 

problem

   ERROR: Complete output from command python setup.py egg_info:
    ERROR: Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-nuyjjq93/tslearn/setup.py", line 5, in <module>
        from Cython.Distutils import build_ext as _build_ext
    ModuleNotFoundError: No module named 'Cython'
    ----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-nuyjjq93/tslearn/

 

Solve: pip install --upgrade cython

 

Question 2:

ImportError: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found 

 

Guess you like

Origin blog.csdn.net/Edu_enth/article/details/93494836