Installing python packages on IPEA - jamiefogel/Networks GitHub Wiki
NEW COMMANDS FOR INSTALLING PACKAGES
Installing packages for Python 3.6.9
sudo su - (this is to go to the root)
python3 -m pip install scipy (this is to install the package e.g. scipy)
su p13861161 (this gets us back to the user environment)
If we want to install packages for the new Python 3.10:
sudo su - (this is to go to the root)
python3.10 -m pip install scipy (this is to install the package e.g. scipy)
su p13861161 (this gets us back to the user environment)
SETTING THE PIP PROXY TO THE USUAL IPEA PROXY AS A GLOBAL OPTION
After running the lines below, we don't need to always specify a proxy when running pip.
pip3 config set global.proxy http://cache.ipea.gov.br:3128
python3.10 -m pip config set global.proxy http://cache.ipea.gov.br:3128
COMMANDS FOR INSTALLING PACKAGES WHILE SPECIFYING THE PROXY
Installing packages for Python 3.6.9
sudo su - (this is to go to the root)
pip3 --proxy http://cache.ipea.gov.br:3128/ install scipy (this is to install the package e.g. scipy)
su p13861161 (this gets us back to the user environment)
If we want to install packages for the new Python 3.10:
sudo su - (this is to go to the root)
python3.10 -m pip --proxy http://cache.ipea.gov.br:3128/ install scipy (this is to install the package e.g. scipy)
su p13861161 (this gets us back to the user environment)
Link to email where Bernardo explained this to me: https://mail.google.com/mail/u/2/#search/sudo/FMfcgxwDrvBJgKTwvRQQTQtsDPFBhQbd