Updated bash script and yml env file to set up python interpreter.
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
name: PythonEnv5505v2
|
||||
prefix: ./envs/PythonEnv5505v2 # Custom output folder
|
||||
name: pyenv5505
|
||||
prefix: ./envs/pyenv5505 # Custom output folder
|
||||
channels:
|
||||
- conda-forge
|
||||
- defaults
|
||||
@ -11,6 +11,7 @@ dependencies:
|
||||
- matplotlib
|
||||
- plotly=5.24
|
||||
- scipy
|
||||
- sphinx
|
||||
- pip
|
||||
- pip:
|
||||
- h5py==3.10
|
||||
|
@ -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"
|
||||
|
Reference in New Issue
Block a user