Skip to content

Commit 6380ea4

Browse files

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

GUIDE.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ For TensorFlow:
5252
```
5353
# For Python 2.7
5454
sudo apt-get install python-pip python-numpy swig python-dev
55-
pip install --user wheel
55+
sudo pip install wheel
5656
5757
# For Python 3.3+
5858
sudo apt-get install python3-pip python3-numpy swig python3-dev
59-
pip3 install --user wheel
59+
sudo pip3 install wheel
6060
```
6161

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

323323
```shell
324-
pip install --user /tmp/tensorflow_pkg/tensorflow-1.0.1-cp27-none-linux_armv7l.whl
324+
sudo pip install /tmp/tensorflow_pkg/tensorflow-1.0.1-cp27-none-linux_armv7l.whl
325325
```
326326

327327
### 5. Cleaning Up

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -47,23 +47,23 @@ Next, download the wheel file from this repository and install it:
4747
```shell
4848
# For Python 2.7
4949
wget https://github.com/samjabrahams/tensorflow-on-raspberry-pi/releases/download/v1.0.1/tensorflow-1.0.1-cp27-none-linux_armv7l.whl
50-
pip install --user tensorflow-1.0.1-cp27-none-linux_armv7l.whl
50+
sudo pip install tensorflow-1.0.1-cp27-none-linux_armv7l.whl
5151

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

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

5959
```shell
6060
# For Python 2.7
61-
pip uninstall mock
62-
pip install --user mock
61+
sudo pip uninstall mock
62+
sudo pip install mock
6363

6464
# For Python 3.3+
65-
pip3 uninstall mock
66-
pip3 install --user mock
65+
sudo pip3 uninstall mock
66+
sudo pip3 install mock
6767
```
6868

6969
And that should be it!
@@ -87,7 +87,7 @@ sudo pip2 install tensorflow-1.0.1-cp27-none-linux_armv7l.whl
8787
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:
8888

8989
```
90-
pip3 install --user tensorflow-1.0.1-cp34-cp34m-linux_armv7l.whl
90+
sudo pip3 install tensorflow-1.0.1-cp34-cp34m-linux_armv7l.whl
9191
```
9292

9393
**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.**

0 commit comments

Comments
 (0)