I am having the same issue as this person, down to the letter, where trying to run conda activate myenv
returns:
C:\Users\nt1\AppData\Local\anaconda3>_conda init cmd.exeWARNING: Cannot install xonsh wrapper without a python interpreter in prefix: C:\Users\nt1\AppData\Local\Temp\_MEI36162ERROR during elevated execution. rc: [WinError 0] The operation completed successfully.needs sudo C:\Users\nt1\AppData\Local\Temp\_MEI36162\Scripts\conda.exeneeds sudo C:\Users\nt1\AppData\Local\Temp\_MEI36162\Scripts\conda-env.exemodified C:\Users\nt1\AppData\Local\Temp\_MEI36162\Scripts\conda-script.pymodified C:\Users\nt1\AppData\Local\Temp\_MEI36162\Scripts\conda-env-script.pyneeds sudo C:\Users\nt1\AppData\Local\Temp\_MEI36162\condabin\conda.batneeds sudo C:\Users\nt1\AppData\Local\Temp\_MEI36162\Library\bin\conda.batneeds sudo C:\Users\nt1\AppData\Local\Temp\_MEI36162\condabin\_conda_activate.batneeds sudo C:\Users\nt1\AppData\Local\Temp\_MEI36162\condabin\rename_tmp.batneeds sudo C:\Users\nt1\AppData\Local\Temp\_MEI36162\condabin\conda_auto_activate.batneeds sudo C:\Users\nt1\AppData\Local\Temp\_MEI36162\condabin\conda_hook.batneeds sudo C:\Users\nt1\AppData\Local\Temp\_MEI36162\Scripts\activate.batneeds sudo C:\Users\nt1\AppData\Local\Temp\_MEI36162\condabin\activate.batneeds sudo C:\Users\nt1\AppData\Local\Temp\_MEI36162\condabin\deactivate.batneeds sudo C:\Users\nt1\AppData\Local\Temp\_MEI36162\Scripts\activateneeds sudo C:\Users\nt1\AppData\Local\Temp\_MEI36162\Scripts\deactivateneeds sudo C:\Users\nt1\AppData\Local\Temp\_MEI36162\etc\profile.d\conda.shneeds sudo C:\Users\nt1\AppData\Local\Temp\_MEI36162\etc\fish\conf.d\conda.fishneeds sudo C:\Users\nt1\AppData\Local\Temp\_MEI36162\shell\condabin\Conda.psm1needs sudo C:\Users\nt1\AppData\Local\Temp\_MEI36162\shell\condabin\conda-hook.ps1needs sudo C:\Users\nt1\AppData\Local\Temp\_MEI36162\etc\profile.d\conda.cshmodified HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun==> For changes to take effect, close and re-open your current shell. <==Operation failed.C:\Users\nt1\AppData\Local\anaconda3>
Also, the executable is _conda rather than conda. That _MEI36162 directory doesn't actually seem to exist, or it's not a directory that I can see in the Windows file explorer (even with the show hidden items box checked) or cd into from the command prompt. I guess maybe it's supposed to be created when you run the command and deleted immediately, but I don't know.
The question I linked to was asked over three years ago and none of the answers were helpful to me. Somebody suggested using conda.bat
in condabin
instead of the _conda.exe
file but that returns:
Traceback (most recent call last): File "C:\Users\nt1\AppData\Local\anaconda3\Scripts\conda-script.py", line 11, in <module> from conda.cli import mainModuleNotFoundError: No module named 'conda'
I'll add that somebody in response to a similar question suggested running the commands in anaconda prompt; opening anaconda prompt presents me immediately with the same error.
Also, for clarity: I have anaconda3, anaconda3/Scripts, and anaconda3/condabin all added to Path.
Thanks in advance.