原创转载请注明出处: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