Dateien nach "/" hochladen
Installation und Startdatei für eine virtuelle Python Umgebung unter Windows
This commit is contained in:
parent
74524ddf06
commit
e7e5a2ae2c
18
install.bat
Normal file
18
install.bat
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
@echo off
|
||||||
|
setlocal
|
||||||
|
|
||||||
|
:: Virtuelle Umgebung erstellen, falls sie nicht existiert
|
||||||
|
if not exist venv (
|
||||||
|
echo Erstelle virtuelle Python-Umgebung...
|
||||||
|
python -m venv venv
|
||||||
|
)
|
||||||
|
|
||||||
|
:: Aktivieren der virtuellen Umgebung
|
||||||
|
call venv\Scripts\activate
|
||||||
|
|
||||||
|
:: Installieren der Abhängigkeiten
|
||||||
|
echo Installiere Abhängigkeiten...
|
||||||
|
pip install --no-warn-script-location --disable-pip-version-check -r requirements.txt
|
||||||
|
|
||||||
|
echo Installation abgeschlossen.
|
||||||
|
pause
|
18
start.bat
Normal file
18
start.bat
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
@echo off
|
||||||
|
setlocal
|
||||||
|
|
||||||
|
:: Prüfen, ob die virtuelle Umgebung existiert
|
||||||
|
if not exist venv (
|
||||||
|
echo Virtuelle Umgebung nicht gefunden! Bitte zuerst install.bat ausführen.
|
||||||
|
pause
|
||||||
|
exit /b
|
||||||
|
)
|
||||||
|
|
||||||
|
:: Aktivieren der virtuellen Umgebung
|
||||||
|
call venv\Scripts\activate
|
||||||
|
|
||||||
|
:: Starten des Upload-Servers
|
||||||
|
python pyUpload.py
|
||||||
|
|
||||||
|
:: Nach Beenden der Anwendung
|
||||||
|
deactivate
|
Loading…
x
Reference in New Issue
Block a user