-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
51 lines (39 loc) · 1.23 KB
/
install.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
mkdir PyAuto
cd PyAuto
conda_activate="/home/cao/anaconda3/bin/activate" #Set your own anaconda path here
source ${conda_activate}
# conda update -n base -c defaults conda
conda create -n PT astropy scikit-image scikit-learn scipy python=3.10
conda activate PT
pip install --upgrade pip
git clone https://github.com/rhayes777/PyAutoFit
git clone https://github.com/Jammy2211/PyAutoArray
git clone https://github.com/Jammy2211/PyAutoGalaxy
git clone https://github.com/Jammy2211/PyAutoLens
# switch branch
repositories=("PyAutoFit" "PyAutoArray" "PyAutoGalaxy" "PyAutoLens")
branch_name="2023.10.23.3"
for repo in "${repositories[@]}"
do
echo "Switching to branch $branch_name in $repo"
cd "$repo"
git checkout "$branch_name"
echo "install the requirement of $branch_name in $repo"
pip install -r requirements.txt
cd -
done
# pip install -r PyAutoArray/optional_requirements.txt #include the jax lib
pip install autoconf
conda develop PyAutoFit
conda develop PyAutoArray
conda develop PyAutoGalaxy
conda develop PyAutoLens
pip install numba
#my package
pip install --upgrade GPy
pip install numba-scipy
pip install powerbox
#solve clash
pip install -U scikit-image==0.19.3
cd ..
conda develop lensing_potential_correction