Tensorflow, Keras, Python环境搭建

原创转载请注明出处:https://www.cnblogs.com/agilestyle/p/12503093.html

 

安装Conda

wget https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
sh Miniconda3-latest-MacOSX-x86_64.sh

 

查看Conda版本

conda --version

 

创建指定虚拟环境

conda create --name dl python=3.6

Note:dl是自定义的名字

 

激活虚拟环境

conda activate dl

Note:取消激活命令如下

conda deactivate

 

安装Tensorflow,Keras

conda install tensorflow==2.0.0
conda install keras==2.3.1

Note: Tensorflow, Keras, Python 三者版本安装有兼容要求,具体可以参考各自官网

 

验证

 

Reference

https://docs.conda.io/en/latest/miniconda.html#macosx-installers

https://pypi.org/project/tensorflow/2.0.0/#files

https://pypi.org/project/Keras/2.3.1/

https://www.tensorflow.org/

https://keras.io/

posted @ 2020-03-16 12:42  李白与酒  阅读(378)  评论(0编辑  收藏  举报