Skip to content

Commit 5e00184

Browse files
committed
Create prepare.sh
1 parent 6e0e514 commit 5e00184

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

prepare.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
now_path=`pwd`
2+
3+
# Install miniconda
4+
cd
5+
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
6+
sh Miniconda3-latest-Linux-x86_64.sh
7+
8+
# Configure ~/.bashrc
9+
echo alias p=\"ps -aux|grep zhangjq|grep 'python -u'\" >> ~/.bashrc
10+
echo alias n=\'nvidia-smi\' >> ~/.bashrc
11+
echo alias d=\'du -hs * | sort -h\' >> ~/.bashrc
12+
echo alias del_pycache=\'find . -type d -name __pycache__ -prune -exec rm -rf {} \;\' >> ~/.bashrc
13+
14+
echo export PIP_CACHE_DIR='$PWD'/tmp >> ~/.bashrc
15+
echo export TMPDIR='$PWD'/tmp >> ~/.bashrc
16+
17+
# Install python packages
18+
cd $now_path
19+
source ~/.bashrc
20+
conda env create -f env_cuda_latest.yaml

0 commit comments

Comments
 (0)