作为一只小白,在安装tensorflow的时候出现了各种问题……希望有一些和我出现同样问题的人可以少走一点弯路……鉴于我是用pip安装(即python2.7,如果是更高版本用pip3),在这里只提供pip在OS X上安装的方法。
系统:OS X 10.13,安装的python2.7,tensorflow1.3.0,bazel0.7.0
安装tensorflow的步骤可以参考中文社区,当然如果能翻墙去官网那是最好的,里面的步骤真的很简单……
官网:https://www.tensorflow.org/install/install_mac
1、安装python
由于tensorflow需要python环境,所以第一步是安装python,你可以选择安装2.7或者3.3+的版本
官网连接pip中的安装:
Most distributions of Python come with pip preinstalled. If pip is missing, it can be installed through the system package manager or by invoking cURL, a client-side data transfer tool:
curl https://bootstrap.pypa.io/get-pip.py | python
One major advantage of pip is the ease of its command-line interface, which makes installing Python software packages as easy as issuing one command:
pip install some-package-name
Users can also easily remove the package: