I just reinstalled pycharm and miniconda3, created a conda environment with the following commands
#create an environment and add biopython
conda create --name conda_env1 biopython
#activate the environment
conda activate conda_env1
and tested the environment using the anaconda prompt.
When I try to use the environment as python interpreter for a pycharm project, I go to Add Python Interpreter - Conda environment - Existing environment, the environment created is listed, but when I select it I get the following error
Error configuring SDK: 1 : child= 'Miniconda3 -> 2'; child.nameEqualTo(nameId)=false; child.getClass()=class com.intellij.openapi.vfs.impl.FilePointerPartNode; child.nameId=188; child.getName()='Miniconda3'; nameId=31499; name='miniconda3'; compare(child) = 0; UrlPart.nameEquals: true; name.equals(child.getName())=false.
Please make sure that C:\Users\xxxxx\miniconda3\envs\conda_env1\python.exe is a valid home path for this SDK type.
I also tried to create a new conda environemnt from pycharm, and it gave me the same error.
Many thanks for any help with this, I would really like to be able to use conda envs!