forked from BruceGeLi/TCE_RL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconda_env.sh
82 lines (62 loc) · 2.15 KB
/
conda_env.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#!/bin/bash
# Initialize Conda for this script
eval "$(conda shell.bash hook)"
# Define environment name and Python version
ENV_NAME=tce
PYTHON_VERSION=3.8
# Create a new conda environment
echo "Creating a new conda environment named $ENV_NAME with Python $PYTHON_VERSION"
conda create --name $ENV_NAME python=$PYTHON_VERSION -y
# Activate the newly created environment
echo "Activating the $ENV_NAME environment"
conda activate $ENV_NAME
# Verify if the correct conda environment is activated
echo
if [[ "$CONDA_DEFAULT_ENV" != "$ENV_NAME" ]]; then
echo "$CONDA_DEFAULT_ENV"
echo Failed to activate conda environment.
exit 1
else
echo Successfully activated conda environment.
fi
# Install mamba release to boost installation and resolve dependencies
conda install -c conda-forge mamba=1.4.2 -y
# Install packages using conda or mamba
echo "Installing packages with conda or mamba"
conda install -c hussamalafandi cppprojection -c conda-forge -y
mamba install pytorch=2.2.1 torchvision=0.17.1 torchaudio=2.2.1 pytorch-cuda=11.8 -c pytorch -c nvidia -y
mamba install conda-forge::wandb=0.16.3 -y
mamba install conda-forge::natsort=8.4.0 -y
mamba install conda-forge::tabulate=0.9.0 -y
mamba install conda-forge::conda-build=24.1.2 -y
mamba install conda-forge::mp_pytorch=0.1.4 -y
mamba install conda-forge::cw2=2.5.1 -y
# Add the current TCE repo to python path
conda develop .
# Download packages from Github
# Fancy_Gym
git clone -b tce_final --single-branch [email protected]:BruceGeLi/fancy_gymnasium.git
cd fancy_gymnasium
pip install -e .
conda develop .
cd ..
# Trust_Region_Projection
git clone -b TCE_ICLR24 --single-branch [email protected]:BruceGeLi/trust-region-layers.git
cd trust-region-layers
conda develop .
cd ..
# Git_Repo_Tracker
git clone -b main --single-branch [email protected]:ALRhub/Git_Repos_Tracker.git
cd Git_Repos_Tracker
pip install -e .
conda develop .
cd ..
# MetaWorld
git clone -b tce_final --single-branch [email protected]:BruceGeLi/Metaworld.git
cd Metaworld
pip install -e .
conda develop .
# Install packages using pip
echo "Installing packages with pip"
pip install stable-baselines3==2.2.1
echo "Configuration completed successfully."