Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

conda executable not found in pycharm

I want to use my conda environment in pycharm. But there was no option at all:enter image description here

The python executable does not exist in the drop down menu: enter image description here

however I have no problem activating the environment from command prompt. And the PATH for executable is present for this virtual env:

shutil.which('python')
'C:\\Users\\<my user name>\\AppData\\Local\\anaconda3\\envs\\physioNet\\python.EXE'

although strangely enough, where python yields nothing.

I am using windows and latest version of pycharm (2023.1.2). I have also already seen https://stackoverflow.com/questions/73538040/cannot-add-conda-environment-to-pycharm-conda-executable-path-is-empty-even-wh and https://stackoverflow.com/questions/49714910/anaconda-not-available-in-pycharm

I am not really a proficient user in such an area so any idea would be greatly appreciated.

like image 583
alrightapril Avatar asked Oct 11 '25 12:10

alrightapril


2 Answers

yeah, i encounter this question that is same with you. now i have fixed it successfully.

step 1: click " add local interpreter"

step 2: click " conda environment" enter image description here

step 3: instead of selecting python.exe, choose fold "condabin",and then select file "conda.bat" enter image description here

and then Step 4: click "load environment" button

and then i think you will find "existing environment" and " create new environment" like this:

enter image description here

like image 169
Liam23 Avatar answered Oct 14 '25 01:10

Liam23


None of the solutions worked for me unfortunately, what did was

  1. Add local interpreter
  2. Select Conda Environment
  3. Add the conda executable in the Scripts folder (...miniconda3\Scripts\conda.exe)
  4. Load Environments
  5. Select existing environment

I am using Miniconda3, and PyCharm 2023.1.1

like image 23
edd313 Avatar answered Oct 14 '25 03:10

edd313



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!