File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,15 +5,16 @@ def install_package():
55 """Function to handle package installation via pyautogui."""
66 while True :
77 print ("" )
8- ml = input ("PYI INSTALLER: " ).strip ()
8+ print ("remember that you only need to type which python library you want to install, don't type pip install. everything else will be done for you." )
9+ print ("" )
10+ package = input ("PYI INSTALLER: " ).strip ()
911 pyautogui .hotkey ('win' , 'r' )
1012 pyautogui .typewrite ('powershell' )
1113 pyautogui .press ('enter' )
1214 time .sleep (2 )
13- pyautogui .typewrite ('pip install ' + ml )
15+ pyautogui .typewrite ('pip install ' + package )
1416 pyautogui .press ('enter' )
1517 time .sleep (2 )
16- pyautogui .typewrite ('echo Press enter to exit PowerShell' )
1718 pyautogui .press ('enter' )
1819 pyautogui .typewrite ('exit' )
1920 pyautogui .press ('enter' )
You can’t perform that action at this time.
0 commit comments