pip install without sudo

As requested in https://github.com/zcash/zcash-gitian/issues/15
This commit is contained in:
Charlie OKeefe 2018-04-23 15:21:49 -06:00
parent a0f75ea091
commit 1d28131077
1 changed files with 16 additions and 1 deletions

View File

@ -116,7 +116,22 @@ pip 9.0.1 from /usr/lib/python2.7/dist-packages (python 2.7)
# Install ansible 2.4.x or higher
```
sudo pip install -U ansible
pip install --user -U ansible
```
This will place an `ansible` executable in `~/.local/bin`, so add the following to `~/.profile`:
```
# set PATH so it includes user's private .local/bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
```
Then source .profile in your shell session:
```
$ source .profile
```
Most recently tested 2018-04-23 with the following ansible release: