ML computers python
Jump to navigation
Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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'
- Steps and more info:
- https://stackoverflow.com/questions/37954008/proper-way-to-install-pip-on-ubuntu
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"