​​The Cambridge Crystallographic Data Centre (CCDC).
The CCDC websites use cookies. By continuing to browse the site you are agreeing to our use of cookies. For more details about cookies and how to manage them, see our  cookie policy.

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:

"C:\Program Files\CCDC\Python_API_2022\miniconda\Scripts\activate.bat"

On Linux or MacOS it is

source /path/to/CCDC/Python_API_2022/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.