Chore: Updating windows installation

This commit is contained in:
Halcy0nic
2024-07-09 15:29:59 -05:00
committed by GitHub
parent 4fab4013b5
commit 3ad9aea25b
+10 -2
View File
@@ -9,7 +9,7 @@ IF %ERRORLEVEL% EQU 0 (
echo Installing Python 3.12...
:: Download the most recent Python 3.12 installer
powershell -Command "Invoke-WebRequest -Uri https://www.python.org/ftp/python/3.12.4/python-3.12.4-amd64.exe -OutFile python-installer.exe"
powershell -Command "Invoke-WebRequest -Uri https://www.python.org/ftp/python/3.12.0/python-3.12.0-amd64.exe -OutFile python-installer.exe"
:: Install Python silently
python-installer.exe /quiet InstallAllUsers=1 PrependPath=1
:: Clean up installer
@@ -23,8 +23,16 @@ IF %ERRORLEVEL% NEQ 0 (
python -m ensurepip --upgrade
)
:: Create a requirements.txt file
echo beautifulsoup4==4.12.3 > requirements.txt
echo Flask==2.3.2 >> requirements.txt
echo Flask_SocketIO==5.3.6 >> requirements.txt
echo MarkupSafe==2.1.3 >> requirements.txt
echo pyserial==3.5 >> requirements.txt
echo Requests==2.31.0 >> requirements.txt
:: Install required Python packages
pip install flask flask-socketio pyserial beautifulsoup4 requests
pip install -r requirements.txt
:: Inform the user that the installation is complete
echo Installation complete. You can now run your application using: python your_script.py