Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
samjabrahams committed Apr 17, 2017
2 parents 1ebfe82 + 7fdacc0 commit 6380ea4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ For TensorFlow:
```
# For Python 2.7
sudo apt-get install python-pip python-numpy swig python-dev
pip install --user wheel
sudo pip install wheel
# For Python 3.3+
sudo apt-get install python3-pip python3-numpy swig python3-dev
pip3 install --user wheel
sudo pip3 install wheel
```

To be able to take advantage of certain optimization flags:
Expand Down Expand Up @@ -321,7 +321,7 @@ bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg
And then install it!

```shell
pip install --user /tmp/tensorflow_pkg/tensorflow-1.0.1-cp27-none-linux_armv7l.whl
sudo pip install /tmp/tensorflow_pkg/tensorflow-1.0.1-cp27-none-linux_armv7l.whl
```

### 5. Cleaning Up
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,23 +47,23 @@ Next, download the wheel file from this repository and install it:
```shell
# For Python 2.7
wget https://github.com/samjabrahams/tensorflow-on-raspberry-pi/releases/download/v1.0.1/tensorflow-1.0.1-cp27-none-linux_armv7l.whl
pip install --user tensorflow-1.0.1-cp27-none-linux_armv7l.whl
sudo pip install tensorflow-1.0.1-cp27-none-linux_armv7l.whl

# For Python 3.4
wget https://github.com/samjabrahams/tensorflow-on-raspberry-pi/releases/download/v1.0.1/tensorflow-1.0.1-cp34-cp34m-linux_armv7l.whl
pip3 install --user tensorflow-1.0.1-cp34-cp34m-linux_armv7l.whl
sudo pip3 install tensorflow-1.0.1-cp34-cp34m-linux_armv7l.whl
```

Finally, we need to reinstall the `mock` library to keep it from throwing an error when we import TensorFlow:

```shell
# For Python 2.7
pip uninstall mock
pip install --user mock
sudo pip uninstall mock
sudo pip install mock

# For Python 3.3+
pip3 uninstall mock
pip3 install --user mock
sudo pip3 uninstall mock
sudo pip3 install mock
```

And that should be it!
Expand All @@ -87,7 +87,7 @@ sudo pip2 install tensorflow-1.0.1-cp27-none-linux_armv7l.whl
Vice-versa for trying to install the Python 3 wheel. If you get the error "tensorflow-1.0.1-cp34-cp34m-any.whl is not a supported wheel on this platform.", try this command:

```
pip3 install --user tensorflow-1.0.1-cp34-cp34m-linux_armv7l.whl
sudo pip3 install tensorflow-1.0.1-cp34-cp34m-linux_armv7l.whl
```

**Note: the provided binaries are for Python 2.7 and 3.4 _only_. If you've installed Python 3.5/3.6 from source on your machine, you'll need to either explicitly install these wheels for 3.4, or you'll need to build TensorFlow [from source](GUIDE.md). Once there's an officially supported installation of Python 3.5+, this repo will start including wheels for those versions.**
Expand Down

0 comments on commit 6380ea4

Please sign in to comment.