-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path1 Install Environment.bat
More file actions
36 lines (28 loc) · 906 Bytes
/
Copy path1 Install Environment.bat
File metadata and controls
36 lines (28 loc) · 906 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
@echo off
echo Running...
:: check if Python is installed
python --version
IF ERRORLEVEL 1 (
echo Python is not installed.
echo Installing Python...
:: download Python installer
powershell -Command "& { Invoke-WebRequest https://www.python.org/ftp/python/3.9.6/python-3.9.6-amd64.exe -OutFile .\pythonInstaller.exe }"
:: install Python
.\pythonInstaller.exe /quiet InstallAllUsers=1 PrependPath=1 Include_test=0
:: remove Python installer
del .\pythonInstaller.exe
) else (
echo Python checked!
)
echo Almost done! Installing Environment in 5 sec
timeout /t 5 /nobreak
:: install Requests library
pip3 install requests
IF ERRORLEVEL 1 (
echo Failed to install Requests library.
echo Don't worry! Just close and re-run the Start.bat
) else (
echo Successfully installed Requests library.
)
:: run python
echo Ready!!