Skip to content

Commit

Permalink
Merge pull request #86 from samjabrahams/r1.0.1
Browse files Browse the repository at this point in the history
Merge R1.0.1
  • Loading branch information
samjabrahams authored Apr 6, 2017
2 parents 09f289a + d30127f commit 4248556
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ For TensorFlow:
```
# For Python 2.7
sudo apt-get install python-pip python-numpy swig python-dev
sudo pip install wheel
pip install --user wheel
# For Python 3.3+
sudo apt-get install python3-pip python3-numpy swig python3-dev
sudo pip3 install wheel
pip3 install --user wheel
```

To be able to take advantage of certain optimization flags:
Expand Down Expand Up @@ -283,7 +283,7 @@ cd ..
First things first, clone the TensorFlow repository and move into the newly created directory.

```shell
git clone --recurse-submodules https://github.com/tensorflow/tensorflow
git clone --recurse-submodules https://github.com/tensorflow/tensorflow.git
cd tensorflow
```

Expand Down Expand Up @@ -360,7 +360,7 @@ bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg
And then install it!

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

### 6. Cleaning Up
Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,24 +38,24 @@ 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.0/tensorflow-1.0.0-cp27-none-linux_armv7l.whl
sudo pip install tensorflow-1.0.0-cp27-none-linux_armv7l.whl
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

# For Python 3.4
wget https://github.com/samjabrahams/tensorflow-on-raspberry-pi/releases/download/v1.0.0/tensorflow-1.0.0-cp34-cp34m-linux_armv7l.whl
sudo pip3 install tensorflow-1.0.0-cp34-cp34m-linux_armv7l.whl
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
```

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

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

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

And that should be it!
Expand All @@ -68,18 +68,18 @@ Instructions on setting up a Docker image to run on Raspberry Pi are being maint

_This section will attempt to maintain a list of remedies for problems that may occur while installing from `pip`_

#### "tensorflow-1.0.0-cp27-none-linux_armv7l.whl is not a supported wheel on this platform."
#### "tensorflow-1.0.1-cp27-none-linux_armv7l.whl is not a supported wheel on this platform."

This wheel was built with Python 2.7, and can't be installed with a version of `pip` that uses Python 3. If you get the above message, try running the following command instead:

```
sudo pip2 install tensorflow-1.0.0-cp27-none-linux_armv7l.whl
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.0-cp34-cp34m-any.whl is not a supported wheel on this platform.", try this command:
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:

```
sudo pip3 install tensorflow-1.0.0-cp34-cp34m-linux_armv7l.whl
pip3 install --user 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 4248556

Please sign in to comment.