我想为本地用户安装9.0.3我已经更改了PIP路径
$ which -a pip
/efs/home/myuser/.local/bin/pip
/usr/local/bin/pip
$ pip install --upgrade pip --user
Collecting pip
Using cached pip-9.0.3-py2.py3-none-any.whl
Installing collected packages: pip
Successfully installed pip-9.0.3
pip -V
pip 9.0.1 from /usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg (python 2.7)
您如何更改哪个PIP?
我编辑了#!在
的pip中#!/usr/bin/env python3.6
我在本地DIR中使用可用的说明的修改版本安装了Python3.6。并添加
export PYTHONPATH=${PYTHONPATH}:${HOME}/.local/bin
到.bash_profile
$ pip -V
pip 9.0.3 from /efs/home/myuser/.local/lib/python3.6/site-packages (python 3.6)
^修改正在配置安装
./configure --prefix=/efs/home/myuser/.local/
我没有进行2。安装PIP说明。