keras/tensorflow环境搭建conda环境部署(conda和pip可以混用)

1按照https://conda.io/docs/user-guide/install/index.html 的指引, 下载对应的conda,

  我的系统是linux.  在.bashrc 增加这一行

source /home/ubuntu/anaconda3/etc/profile.d/conda.sh

,不然无法使用caonda命令

 2    创建环境并且进入环境

conda create -n py3cpu python=3.6.2

然后进入环境conda  activate py36cpu

3 安装各种需要的包,版本可以按需要修改

pip install  numpy scipy Pillow cython matplotlib scikit-image keras==2.0.8   h5py  IPython
pip install opencv-python imgaug

pip install tensorflow==1.4.0

#如果是比较老的linux版本,提示glibc版本不符合的话请使用

#conda install --channel https://conda.anaconda.org/anaconda tensorflow=1.6.0

你可能感兴趣的:(Python,linux)