UMIACS Servers: Difference between revisions

Line 28: Line 28:
==Python==
==Python==
Do not install anaconda. You will run out of space.<br>
Do not install anaconda. You will run out of space.<br>
Load the Python 3 module
Load the Python 3 module adding the following to your .bashrc file
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
module load Python3
module load Python3
export PATH="${PATH}:$(python3 -c 'import site; print(site.USER_BASE)')/bin"
<syntaxhighlight lang="bash">
Then run the following to get pip installed
</syntaxhighlight lang="bash>
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py --user
python get-pip.py --user
export PATH="${PATH}:$(python3 -c 'import site; print(site.USER_BASE)')/bin"
</syntaxhighlight>
 
===Install PyTorch===
<syntaxhighlight lang="bash">
pip3 install torch===1.3.1 torchvision===0.4.2 -f https://download.pytorch.org/whl/torch_stable.html
</syntaxhighlight>
</syntaxhighlight>