Tensorflow Installation on MAC OS with python3

CREATE A NEW WORKING ENVIRONMENT :

virtualenv –python=python3.6 –system-site-packages foo3

source foo3/bin/activate

INSTALL TENSORFLOW :

pip3 install –upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.10.1-py3-none-any.whl

python -c « import tensorflow as tf; print(tf.__version__) »

 

Alternative install with python 3.6 :

Tensorflow only supports Python 3.6 as of today. You can install a different version of python alongside your standard one. You need to:

You’ll normally find your new python install under /usr/local/bin. Now you can create a new virtualenv specifying the python version with:

  • virtualenv --python=python3.6 env3.6
  • Get into the virtualenv running the command source env3.6/source/bin/activate.
  • Install tensorflow with the classic pip install tensorflow
  • Profit

Soyez le premier à commenter

Poster un Commentaire

Votre adresse de messagerie ne sera pas publiée.


*