Updated bash script and yml env file to set up python interpreter.
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
name: PythonEnv5505v2
|
name: pyenv5505
|
||||||
prefix: ./envs/PythonEnv5505v2 # Custom output folder
|
prefix: ./envs/pyenv5505 # Custom output folder
|
||||||
channels:
|
channels:
|
||||||
- conda-forge
|
- conda-forge
|
||||||
- defaults
|
- defaults
|
||||||
@ -11,6 +11,7 @@ dependencies:
|
|||||||
- matplotlib
|
- matplotlib
|
||||||
- plotly=5.24
|
- plotly=5.24
|
||||||
- scipy
|
- scipy
|
||||||
|
- sphinx
|
||||||
- pip
|
- pip
|
||||||
- pip:
|
- pip:
|
||||||
- h5py==3.10
|
- h5py==3.10
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Define the name and location of the environment
|
# Define the name and location of the environment
|
||||||
ENV_NAME="PythonEnv5505"
|
ENV_NAME="pyenv5505"
|
||||||
ENV_PATH="./envs/$ENV_NAME" # Define a custom output folder
|
ENV_PATH="./envs/$ENV_NAME" # Define a custom output folder
|
||||||
|
|
||||||
# Check if mamba is available and use it instead of conda for faster installation
|
# 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"
|
source activate "$ENV_PATH" || conda activate "$ENV_PATH"
|
||||||
|
|
||||||
# Install pip packages in one go to avoid repeated initializations
|
# 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
|
# Export the environment to a YAML file
|
||||||
$CONDA_COMMAND env export --prefix "$ENV_PATH" > "$ENV_PATH/environment.yaml"
|
$CONDA_COMMAND env export --prefix "$ENV_PATH" > "$ENV_PATH/environment.yaml"
|
||||||
|
Reference in New Issue
Block a user