I am using company Macbook and do not have root nor sudo access but need to have Pip installed for Python 3. How to achieve this and set PATHs properly after installation (on Mac, not Linux).
Thanks!
You can install pip3
without root previlege as follow:
wget https://bootstrap.pypa.io/get-pip.py
python3 get-pip.py --user
pip3
will be installed locally under /home/$USER/.local/bin/
.
Check the installed version:
$HOME/.local/bin/pip3 -V
or
PATH=$PATH:$HOME/.local/bin
pip3 --version
sample output:
pip 10.0.1 from /home/$USER/.local/lib/python3.6/site-packages/pip (python 3.6)
I found this
curl -sS https://bootstrap.pypa.io/get-pip.py >>setup.py
python3 setup.py
here . I have not tested it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.