Centos安装TensorFlow和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"
在安装完毕之后,我们来到CMD控制台(Windows环境下),输入如下命令来建立虚拟环境。
conda create --name tensorflow python=3.*
使用如下指令**虚拟环境
conda activate tensorflow
如下提示则表示进入了虚拟环境
(tensorflow) [[email protected]_0_10_centos kerasdata]#
使用如下指令退出虚拟环境
conda deactivate
conda install tensorflow
conda install keras
运行
import tensorflow as tf
import keras
问题
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/
解决:pip install --upgrade cython
问题2:
ImportError: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found