Difference between revisions of "ML computers python"

From Interaction Station Wiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 22: Line 22:
 
*With the parameter --target you can specify where it needs to be installed:
 
*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"
 
  sudo pip3 install --upgrade tensorflow==1.3.0 -- target="/home/interactionstation/.local/lib/python3.7/site-packages"
 +
 +
[[Category:AI & Machine Learning]]

Latest revision as of 13:42, 28 November 2022

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"