![]() ![]() If you have reached this step, then Congratulation you have Installed Anaconda Python Successfully on your system. To Restart the Anaconda Prompt and use python, you can start selecting Anaconda Prompt and type the “python” command to start the python interpreter.To close the Anaconda Prompt, you can either close it using the command exit or use the mouse to close.You can close the python interpreter by typing “exit()” and press enter.You should see the Zen of Python by Tim Peters. The greater than symbols > indicates that the python interpreter is running. To fix the “conda.exe is not recognized as the name of a cmdlet” error in PowerShell, delete the “ profile.ps1” file located under your “ \Documents\WindowsPowerShell\” directory.Type the python command in the anaconda prompt window and hit enter: You should be able to launch cmd.exe (with or without the /d parameter) now. ![]() In case you receive the following error, please ignore it: ERROR: The system was unable to find the specified registry key or value. In the admin Command Prompt, type the following commands: reg.exe delete "HKCU\SOFTWARE\Microsoft\Command Processor" /v "Autorun" /fĪnd then: reg.exe delete "HKLM\SOFTWARE\Microsoft\Command Processor" /v "Autorun" /f.( Ref: Start Programs Elevated from Run Dialog) To do so, type cmd.exe /d in Start/Run dialog, and press Ctrl Shift Enter. The Autorun value doesn’t exist by default in Windows and can be deleted. To resolve the Command Prompt issue, delete the Autorun registry key. The script file will be located at "%Userprofile%\Documents\WindowsPowerShell\profile.ps1". The PowerShell error (“‘conda.exe’ is not recognized”) is caused by the script file profile.ps1, which was generated by the “ conda init powershell” command you ran earlier. HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\AutoRunĪnd/or HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun If /D was NOT specified on the command line, then when CMD.EXE starts, it looks for the following REG_SZ/REG_EXPAND_SZ registry variables, and if either or both are present, they are executed first. ![]() D – Disable execution of AutoRun commands from the registry (see below) However, you should be able to launch Command Prompt correctly by running “ cmd.exe /d“. Your Python/Anaconda installation added the registry value. The value data might read “ if exist” which CMD.exe executes at launch and closes automatically. HKEY_CURRENT_USER\SOFTWARE\Microsoft\Command Processor This issue occurs due to an incorrect and leftover Autorun registry value after uninstalling Python. (
0 Comments
Leave a Reply. |