Create and Activate Conda¶
This guideline provide how to activate conda environment using Mamba before installing and using P-AIRCARS.
Create conda environment¶
This will create the conda environment in the conda directory.
Create conda environment¶
Setup environment variables
Set these environment variables to make conda environment isolated from your local or system environment.
export PYTHONNOUSERSITE=1 unset PYTHONPATH
Create a Python 3.10 environment with compaitable C/C++ compilers:
mamba create -n paircars_env --override-channels -c conda-forge python=3.10 gcc_linux-64=14 gxx_linux-64=14 gfortran_linux-64=14 cmake pkg-config pip
Activate and deactivate conda environment¶
To activate the environment:
conda activate paircars_env
Note
For the first time, after activating conda environment, type
python -c "import sys; print('\n'.join(sys.path))". This should not show any local paths. If it shows local paths, conda environment is leaking into local python environements, which may cause version conflicts.To deactivate:
conda deactivate