How to exit from anaconda prompt and go back to cmd level ?
I run to open anaconda prompt :
%windir%\System32\cmd.exe "/K" C:\folder\folder\anaconda3\Scripts\activate.bat activate tf_2_gpu
could I 'unload' anaconda and go back to usual cmd dialog console ?
On my Windows 10 box, conda deactivate works.
Related
I tried unistalling miniconda from windows through add or remove programs, and while uninstalling i got this pop uperror and uninstalled miniconda.
But after that, I couldn't access command prompt on Windows.
And in VS Code terminal getting the error :
The terminal process "C:\WINDOWS\System32\cmd.exe" terminated with exit code: 1.
Methods i have tried so far:
Scan C drive for error ,
system restore to last state,
sfc scannow in powershell
I reinstalled miniconda but can't open miniconda prompt too, and conda is not running from powershell too. I already add conda to path variable.
I am not getting any error in powershell while running conda info -e , conda , conda activate but it's not working either.
Try running this command on your PowerShell CLI:
C:\Windows\System32\reg.exe DELETE "HKCU\Software\Microsoft\Command Processor" /v AutoRun /f
How can i open new ubuntu terminal windows or terminal subtab with terminal command?
I need to execute it from current opened ubuntu terminal
You should have programs from your Windows %PATH% available in your WSL $PATH, so you may be able to just use cmd.exe /c bash or similar
Alternatively, you could install an X server on Windows (like Xming) and run a terminal emulator like konsole or Terminator inside WSL
When using Anaconda in Windows you get a shortcut to the "Anaconda Prompt" which is a cmd window that with the base-environment activated and probably all the conda commands loaded.
Is there a way to have some commands executed when starting it?
I'd like to have it change to a specific directory and activate a specific environment other than base.
The "Anaconda Prompt" is actually a link executing
%windir%\System32\cmd.exe "/K" C:\ProgramData\Anaconda3\Scripts\activate.bat C:\ProgramData\Anaconda3
The flag /k provided to cmd executes the subsequent commands, in this case activate.bat. To execute more commands we can just add them using the command separator &&, so we can use
%windir%\System32\cmd.exe "/K" C:\ProgramData\Anaconda3\Scripts\activate.bat
C:\ProgramData\Anaconda3 && cd some_directory && conda activate some_environment
I want to deliver an app that is based on anaconda. I can start the app with a bat file from the anaconda prompt. The problem is, that bat files are called with cmd.exe instead of anaconda prompt. After installing anaconda on windows the conda executable is generally not in the PATH variable. So, cmd.exe does not know how to call activate condaenv.
Is there a way to make the bat file start with anaconda prompt when clicking on it with the mouse?
I don't want to have to open the anaconda prompt and start the script from there.
I use Windows 10 and in cmd I want to use the command
sfc /scannow
Cmd then gives me this message
You must be an administrator running a console session in order to use the sfc utility.
I then try to open cmd by right-clicking and press Run as Administrator.
But then I get this error. How can I solve this?
Firstly, the error is not related to cmd.exe running as admin. You probably have something incorrectly assigned to that specific shortcut.
Below is the correct way of running cmd.exe as Admin on Windows 8 and Windows 10
On your keyboard press windows key and X then select Command Prompt (Admin) from the list.
Alternatively right click on the start button and select the above mentioned.
This allows your to run cmd.exe as administrator. and you can then run
sfc /SCANNOW
Right-click on the Command Prompt icon and select Run as administrator