Tensorflow, Keras, Python environment to build

Original please indicate the source: https://www.cnblogs.com/agilestyle/p/12503093.html

 

Installation Conda

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

 

View Conda version

conda --version

 

Create a designated virtual environment

conda create --name dl python=3.6

Note: dl custom name

 

Activating virtual environment

conda activate dl

Note: Deactivate the following command

conda deactivate

 

Installation Tensorflow, Keras

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

Note: Tensorflow, Keras, Python have a compatible version of the three requirements, specifically refer to the respective official website

 

verification

 

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://keras.io/

Guess you like

Origin www.cnblogs.com/agilestyle/p/12503093.html