Install TensorFlow(CPU) and Keras with anaconda on macOS Mojave(10.14)

According to the official website recommended install tensorflow with Anaconda.

1, Install anaconda

Anaconda official website


2, Create a virtual enviorment with anaconda

Open TensorFlow official website,Find Create a virtual environment (recommended) ,choose the third section conda

conda create -n venv pip python=3.6 # select python version

(You can omit pip python=3.6 here. Anaconda has already support 3.7 version)

source activate venv

pip install –ignore-installed –upgrade packageURL

(You can find packageURL here)

The code is:

pip install


3, Install Keras

pip install keras


Keras is now installed.