python – Cannot add conda environment to Pycharm – Conda executable path is empty even when it’s not

I am pretty proficient in pycharm but it is the first time I stumble into this problem.

  1. I created a conda environment
  2. Finding the conda executable which for me is in /home/my_username/.miniconda3/envs/py39/bin/python
  3. Adding it to pycharm results in:
    enter image description here

I tried to search for this issue and error but the results didnt help.
I am using fedora 36 if it is relevant.

Edit: The output of which conda is:


Then trying to add it as the interpreter as suggested in Pycharm: Conda executable path is empty:
enter image description here

Read more here: Source link