FAQs
Activating the CSD Python API
Solution
Before using the CSD Python API you must activate it so that the system knows where to look for the Python interpreter and all its modules.
Assuming the Python API has been installed in the standard location using the CSDS installer, on Windows the simplest way is to launch an Anaconda prompt from the Start menu. Alternatively you can run this command from a DOS command prompt:
%USERPROFILE%\CCDC\ccdc-software\csd-python-api\miniconda\Scripts\activate.bat
From a Windows Powershell use these two commands:
. %USERPROFILE%\CCDC\ccdc-software\csd-python-api\miniconda\shell\condabin\conda-hook.ps1
conda activate
If the path to either script contains a space, enclose the full path in double quotes, for example:
. "C:\Program Files\CCDC\ccdc-software\csd-python-api\miniconda\shell\condabin\conda-hook.ps1"
On Linux or MacOS it is
source /path/to/CCDC/ccdc-software/csd-python-api/miniconda/bin/activate
(replace /path/to with the correct path).
If the activation was successful "(base)" will appear at the beginning of the command prompt.