-
Notifications
You must be signed in to change notification settings - Fork 54
/
setup_env.sh
16 lines (14 loc) · 660 Bytes
/
setup_env.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
echo "Starting Anaconda setup"
echo "Installing Miniconda"
wget -c https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod 755 Miniconda3-latest-Linux-x86_64.sh
bash ./Miniconda3-latest-Linux-x86_64.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
echo 'export PATH="$HOME/miniconda/bin:$PATH"' >> ~/.bashrc
echo "Finished installing Miniconda"
conda -y create -n flyback python=3.7
conda init bash
# reopen
source activate flyback
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
pip install numpy torch==1.3.1 torchvision==0.4.2 transformers pytorch-lightning==0.6 gpustat gensim ujson fuzzywuzzy