Skip to content

Instantly share code, notes, and snippets.

@SherenL
SherenL / run_python_script_in_conda_env.bat
Last active July 29, 2022 08:19 — forked from maximlt/run_python_script_in_conda_env.bat
Run a Python script in a conda environment from a batch file
@echo OFF
rem Run a Python script in a given conda environment from a batch file.
rem Define here the path to your conda installation
set CONDAPATH=C:\ProgramData\Anaconda3
rem Check for Miniconda3 or Anaconda3
If EXIST %CONDAPATH% (
ECHO "Anaconda3 installation found..."
) else (