Updated bash script and yml env file to set up python interpreter.

This commit is contained in:
2024-12-04 13:52:35 +01:00
parent d422067223
commit 112b88e31f
2 changed files with 5 additions and 4 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash
# Define the name and location of the environment
ENV_NAME="PythonEnv5505"
ENV_NAME="pyenv5505"
ENV_PATH="./envs/$ENV_NAME" # Define a custom output folder
# Check if mamba is available and use it instead of conda for faster installation
@ -19,7 +19,7 @@ $CONDA_COMMAND create -y -p "$ENV_PATH" python=3.11 \
source activate "$ENV_PATH" || conda activate "$ENV_PATH"
# Install pip packages in one go to avoid repeated initializations
pip install h5py==3.10 pybis==1.35 igor2 ipykernel
pip install h5py==3.10 pybis==1.35 igor2 ipykernel sphinx
# Export the environment to a YAML file
$CONDA_COMMAND env export --prefix "$ENV_PATH" > "$ENV_PATH/environment.yaml"