ML computers python

From Interaction Station Wiki
Revision as of 13:42, 28 November 2022 by Annasa (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Installing pip and pip3

sudo apt-get install python-pip python3-pip --yes
sudo python3 -m pip install pip --upgrade --force-reinstall
sudo python -m pip install pip --upgrade --force-reinstall 
alias python='export PYTHONPATH=${PYTHONPATH2};python'
alias python3='export PYTHONPATH=${PYTHONPATH3};python3'

Helpful info

  • When using pip or pip3, python packages get installed here:
/usr/local/lib
  • site-packages directories can be listed with:
python -m site --user-site
  • Everything that you install with pip3 is in:
/home/interactionstation/.local/lib/python3.7/site-packages
  • With the parameter --target you can specify where it needs to be installed:
sudo pip3 install --upgrade tensorflow==1.3.0 -- target="/home/interactionstation/.local/lib/python3.7/site-packages"