I am doing coursework and one of the important requirements is to create a .bat
file for scripts. The bat file should run the script. I took this step until one thought struck me.
Code .bat file:
@echo off
py -u "Task_1.py"
echo %ERRORLEVEL%
pause
In my code, I use many third-party libraries, including for creating an interface. Let's assume that this script will run on a computer without python. Is it possible to somehow write a .bat
file that would check for the presence of python and third-party libraries, and in their absence would download them? Has anyone done something similar, could you suggest how this can be implemented?