-
Notifications
You must be signed in to change notification settings - Fork 91
/
install_38.sh
executable file
·31 lines (31 loc) · 1.08 KB
/
install_38.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
echo "Pulling submodules"
bash pull_submodules.sh
echo "Installing mamba"
conda install mamba -n base -c conda-forge
if ! command -v mamba &> /dev/null
then
echo "mamba could not be found. Please install mamba before running this script"
exit
fi
echo "Creating conda environment"
mamba create -n work38 python=3.8
eval "$(conda shell.bash hook)" # make sure conda works in the shell script
conda activate work38
if echo $CONDA_PREFIX | grep work38
then
echo "Conda environment successfully activated"
else
echo "Conda environment not activated. Probably it was not created successfully for some reason. Please activate the conda environment before running this script"
exit
fi
echo "Installing conda packages"
mamba env update -n work38 --file conda-environment_py38_cu11_ubuntu.yml
echo "Installing other requirements"
pip install -r requirements38.txt
pip install Cython==0.29
echo "Making sure Pytorch3D installed correctly"
pip install git+https://github.com/facebookresearch/[email protected]
echo "Installing GDL"
pip install -e .
echo "Installation finished"