ContinuumIO / anaconda-issues

Anaconda issue tracking
648 stars 224 forks source link

Conda not functioning after reinstall, ModuleNotFoundError: No module named 'conda' #13348

Open Eugene-Lam opened 9 months ago

Eugene-Lam commented 9 months ago

Checklist

Impacted product

What happened?

Anaconda Version: 2023.09-0

Operating System: Windows 11

After experiencing issues with the Anaconda startup, I decided to reinstall the software. However, conda still doesn't start, throwing the following error in the terminal: ModuleNotFoundError: No module named 'conda'.

I followed the solution proposed in this github issue. However, there weren't any PYTHONPATH and PYTHONHOME variables set in my environment, so the recommended solution could not be applied.

Expected behavior or outcome

I expected conda to start normally after a fresh reinstall of Anaconda. However, it continues to produce the ModuleNotFoundError.

Conda info

Traceback (most recent call last):
  File "C:\Users\Eugene\anaconda3\Scripts\conda-script.py", line 11, in <module>
    from conda.cli import main
ModuleNotFoundError: No module named 'conda'

Conda config

No response

Conda list

No response

Additional information

image

conda/conda#9852

9927

travishathaway commented 9 months ago

@Eugene-Lam,

Does this only happen with Powershell? What happens when you try running conda using the Command Prompt (i.e. "cmd.exe")?

EdnaEze commented 9 months ago

@Eugene-Lam,

Does this only happen with Powershell? What happens when you try running conda using the Command Prompt (i.e. "cmd.exe")?

Hi, I am experiencing exactly the same issue with @Eugene-Lam and to answer your question when I tried using the Command prompt, it generated an error report.

Screenshot (268)