Skip to content
Snippets Groups Projects
Commit 652733fd authored by Tizian Wenzel's avatar Tizian Wenzel
Browse files

Added setup.sh file.

parent 83889b85
No related branches found
No related tags found
No related merge requests found
setup.sh 0 → 100755
set -e
export BASEDIR="$(cd "$(dirname ${BASH_SOURCE[0]})" ; pwd -P)"
cd "${BASEDIR}"
# Create and source virtualenv
if [ -e "${BASEDIR}/venv/bin/activate" ]; then
echo "using existing virtualenv"
else
echo "creating virtualenv ..."
virtualenv --python=python3 venv
fi
source venv/bin/activate
# Upgrade pip and install libraries (dependencies are also installed)
pip install --upgrade pip
pip3 install --ignore-installed torch==1.9.1+cpu torchvision==0.10.1+cpu torchaudio==0.9.1 -f https://download.pytorch.org/whl/torch_stable.html
scipy==1.7.3
sklearn==0.0.post5
# Install further stuff
pip install matplotlib
# pip freeze > requirements.txt
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment