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
Related
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.
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 need to run the 2nd command on windows cmd only if the 1st one fails,
in another scneario, I want to open python setup after checking if it is installed or not.
I used this command
python --version || path/to/python_install.exe
as I know the || means run if the last command failed.
but it only runs the first one.
All of the comments guided me to the right way to do it.
I used this great working code:
:: Check for Python Installation
python --version 3>NUL
if errorlevel 1 goto errorNoPython
:: Reaching here means Python is installed.
:: Execute stuff...
:: Once done, exit the batch file -- skips executing the errorNoPython section
goto:eof
:errorNoPython
echo.
echo Error^: Python not installed
"C:\Program Files\used\systems\innoventiq\accumanager\required\excutables\python-3.7.3-amd64.exe"
Open Command Prompt > Type Python Or py > Hit Enter
If Python Is Installed it will show the version Details Otherwise It will Open Microsoft Store To Download From Microsoft Store
Just go in cmd and type where python if it installed it will open a prompt .
Sometimes it may not work if environment variable is not set up, so you can also check by where python in cmd. If where python returns something hot to that path and see for python.exe
try these commands:
python3 for the python version over 3.x
or
python for the rest of the version of python
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 am using the following tutorial to install TensorFlow on my Windows machine, using Docker: http://www.netinstructions.com/how-to-install-and-run-tensorflow-on-a-windows-pc/
I installed Docker
I opened quickstart terminal
I set up a new virtual box "vdocker"
From within quickstart terminal, I ran
docker-machine ls and got:
NAME ACTIVE DRIVER STATE URL SWARM
default * virtualbox Running tcp://192.168.99.100:2376
vdocker - virtualbox Running tcp://192.168.99.101:2376
I opened up a command prompt from Windows Start menu (first as a non-administrator, and later as administrator), and when I do
docker-machine ls
I get the following:
In particular, I get stuck on this step of the tutorial I included above:
FOR /f "tokens=*" %i IN ('docker-machine env --shell cmd vdocker') DO %i
I cannot run the above in CMD successfully.
I found online solutions that say to regenerate certificates, remove default, re-create default and I tried them, with no luck. Hints would be appreciated!
In particular, I get stuck on this step of the tutorial I included above:
FOR /f "tokens=*" %i IN ('docker-machine env --shell cmd vdocker') DO %i
That is not the command you show in the screenshot. There, the path has spaces in it, which causes the initial C:\Program do be passed to DO %i. That is, it first tries to execute DO C:\Program which is not an executable.
I am assuming the other problems are also related to the fact that the installation directory name contains spaces.