Conda environments are Python distributions built in release mode, but for my Python extension module it would be helpful to be able to use conda to link Python in Debug mode. So can we build a conda environment in debug mode?
Something like:
conda create --name py39_d python=3.9 --config Debug
Conda Forge started shipping debug builds starting with Python 3.11.‡ The debug builds are under the label python_debug
. An example install might look like:
conda create --name py311_d -c conda-forge/label/python_debug python=3.11
‡: Thanks @jakirkham for pointing this out!