-
Notifications
You must be signed in to change notification settings - Fork 0
/
Venv.bat
64 lines (59 loc) · 1.13 KB
/
Venv.bat
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
@echo off
chcp 65001 > NUL
call venv\Scripts\activate
echo Virtual environment activated
echo.
echo Available options:
echo 1. Install package
echo 2. Uninstall package
echo 3. Upgrade package
echo 4. List installed packages
echo 5. Show package details
echo 6. Check dependencies
echo 7. Debug information
echo 8. Exit
echo.
:menu
set /p choice="Enter your choice (1-8): "
if "%choice%"=="1" (
set /p package="Enter package name to install: "
pip install %package%
goto menu
)
if "%choice%"=="2" (
set /p package="Enter package name to uninstall: "
pip uninstall %package%
goto menu
)
if "%choice%"=="3" (
set /p package="Enter package name to upgrade: "
pip install --upgrade %package%
goto menu
)
if "%choice%"=="4" (
pip list
echo.
goto menu
)
if "%choice%"=="5" (
set /p package="Enter package name to show details: "
pip show %package%
echo.
goto menu
)
if "%choice%"=="6" (
pip check
echo.
goto menu
)
if "%choice%"=="7" (
pip debug --verbose
echo.
goto menu
)
if "%choice%"=="8" (
deactivate
exit
)
echo Invalid choice. Please try again.
goto menu