MAC 安装python3.6和tensorflow

python的安装

tensorflow的安装

没有pip3的话先安装

sudo easy_install pip

sudo easy_install --upgrade six

安装TensorFlow

pip install tensorflow

上边不行的话,使用下边的办法

Mac OS X, CPU only, Python 2.7:

export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.0.0-py2-none-any.whl

Mac OS X, GPU enabled, Python 2.7:

export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/gpu/tensorflow_gpu-1.0.0-py2-none-any.whl

Mac OS X, CPU only, Python 3.4 or 3.5:

export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.0.0-py3-none-any.whl

Mac OS X, GPU enabled, Python 3.4 or 3.5:

export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/gpu/tensorflow_gpu-1.0.0-py3-none-any.whl

  • 接下来Install TensorFlow:

Python 2
sudo pip install --upgrade $TF_BINARY_URL

Python 3
sudo pip3 install --upgrade $TF_BINARY_URL

猜你喜欢

转载自blog.csdn.net/zhangyu4863/article/details/81107002