yum -y install tkinter
apt-get install python-tk
yum -y install tcl-devel tk-devel
创建环境:
conda create -n tensorflow python=2.7
source activate tensorflow
pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0-cp27-none-linux_x86_64.whl
升级pip:
pip install --upgrade pip
ipython测试,发现import tensorflow报错,安装ipython
source activate tensorflow #激活tensorflow环境
conda install ipython