Skip to content

Commit 4ea425b

Browse files
authored
test: Upgrade Miniconda version for ubuntu 24.04 (#142)
* Update miniconda version * For testing * Try with python 3.12
1 parent fb8bcec commit 4ea425b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tools/gen_pb_exec_env.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,18 @@
2727

2828
# install conda
2929
rm -rf ./miniconda
30-
wget https://repo.anaconda.com/miniconda/Miniconda3-py310_23.3.1-0-Linux-x86_64.sh
31-
bash Miniconda3-py310_23.3.1-0-Linux-x86_64.sh -p ./miniconda -b
30+
wget https://repo.anaconda.com/miniconda/Miniconda3-py312_24.9.2-0-Linux-x86_64.sh
31+
bash Miniconda3-py312_24.9.2-0-Linux-x86_64.sh -p ./miniconda -b
3232
eval "$(./miniconda/bin/conda shell.bash hook)"
3333

3434
# create conda environment
35-
conda create -n pt python=3.10 -y
35+
conda create -n pt python=3.12 -y
3636
conda activate pt
3737
conda install -c conda-forge conda-pack -y
3838

3939
# pre install step
4040
export PYTHONNOUSERSITE=True
41-
conda install -c conda-forge libstdcxx-ng=12 -y
41+
conda install -c conda-forge libstdcxx-ng=14 -y
4242

4343
# install PyTorch
4444
conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia -y
@@ -49,4 +49,3 @@ conda pack -o pb_exec_env_model.py.tar.gz
4949

5050
# deactivate conda
5151
conda deactivate
52-
conda deactivate

0 commit comments

Comments
 (0)