Skip to content

Commit 7fdacc0

Browse files
committed
Revert --user flag on pip install commands
People are having issues when installing TensorFlow using ``` pip install --user ... ``` * #91 * #87 This is a hotfix to get things working again. Will have to do more investigation to figure out the best way to encourage "safe" practices.
1 parent 12e1a77 commit 7fdacc0

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
@@ -45,23 +45,23 @@ Next, download the wheel file from this repository and install it:
4545
```shell
4646
# For Python 2.7
4747
wget https://github.com/samjabrahams/tensorflow-on-raspberry-pi/releases/download/v1.0.1/tensorflow-1.0.1-cp27-none-linux_armv7l.whl
48-
pip install --user tensorflow-1.0.1-cp27-none-linux_armv7l.whl
48+
sudo pip install tensorflow-1.0.1-cp27-none-linux_armv7l.whl
4949

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

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

5757
```shell
5858
# For Python 2.7
59-
pip uninstall mock
60-
pip install --user mock
59+
sudo pip uninstall mock
60+
sudo pip install mock
6161

6262
# For Python 3.3+
63-
pip3 uninstall mock
64-
pip3 install --user mock
63+
sudo pip3 uninstall mock
64+
sudo pip3 install mock
6565
```
6666

6767
And that should be it!
@@ -85,7 +85,7 @@ sudo pip2 install tensorflow-1.0.1-cp27-none-linux_armv7l.whl
8585
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:
8686

8787
```
88-
pip3 install --user tensorflow-1.0.1-cp34-cp34m-linux_armv7l.whl
88+
sudo pip3 install tensorflow-1.0.1-cp34-cp34m-linux_armv7l.whl
8989
```
9090

9191
**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)