
The anaconda prompt is actually just cmd.exe, and “it would be better if Windows were more like Linux” isn’t an option, so a shebang doesn’t quite make sense. Also, if you want to include an executable that contains a space in the path, you will need two sets of quotes. So, make an actual batch file: open up notepad, type the commands you want to run, and save as a.
#VIEW FILES ANACONDA PROMPT HOW TO#
How to execute CMD commands through a batch file? bat file, but now that I cannot run python commands from cmd.exe this doesn’t work. I would like to make a desktop shortcut to activate my environment and run spyder from it. See the bat scriptĬan you run Python from the Anaconda prompt?Īfter installing anaconda3 in windows, I can run python commands from the anaconda prompt, but not from the windows command prompt. I also tried to modify the batch file to activate pylayers environment from the base env and run the conda or pip commands one by one, but it installs to base environment only. How to execute a batch script from an anaconda virtual environment?


bash-rc file to add Anaconda to your PATH.
#VIEW FILES ANACONDA PROMPT INSTALL#
Run the bash script to install Anaconda3.Use wget to download the bash installer.Copy the bash (.sh file) installer link.Save your file with the file extension.Add your commands, starting with, followed by-each in a new line-title, echo, and pause.Open a text file, such as a Notepad or WordPad document.
