I use agent mode and it will not let me select the right env to run python. How to configure?

I conda activate a env, but if I use agent mode, it only use the “base” env. How to configure the python env in the cursor in agent mode?