1

When I open the integrated terminal in PyCharm (PowerShell), I get this error:

FileNotFoundError: [Errno 2] No such file or directory:
'C:\Users\26396\AppData\Local\Temp_MEI45642\conda\shell\condabin\conda-hook.ps1'

Every time I restart PyCharm, the _MEIxxxxx folder name changes (e.g., _MEI131402, _MEI45642), so copying the file there doesn’t help.

However, my real Conda installation is at: D:\software\miniconda

I’ve already tried:

  • Re-running conda init powershell
  • Manually editing $PROFILE to call conda-hook.ps1 from the real path
  • Setting CONDA_ROOT and CONDA_EXE in environment variables

But the problem persists only in PyCharm’s terminal.
Running PowerShell outside PyCharm works fine.

How can I stop Conda from being initialized from the _MEIxxxxx temporary folder when using PyCharm?

2
  • name _MEIxxxxx may suggest that you run some Python code converted to .exe using PyInstaller. PyInstaller creates self-executable .zip file (with extension .exe) - when you run it then it creates random folder with name like _MEIxxxxx, extracts all files from .exe to this folder and runs code in this folder. I don't use Windows so I can't help more - but I wonder why you need to use conda init powershell. Commented Oct 28 at 15:45
  • Because I usually use PowerShell on Windows, and conda wasn’t recognized there until I ran conda init powershell. Commented Oct 30 at 9:11

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.