File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,16 +12,16 @@ def install(*packages):
1212 except subprocess .CalledProcessError :
1313 os .system ('sudo apt install -y python3-pip' )
1414
15- os .system ('pip3 install ' + packages )
15+ os .system (f'pip install { package } ' )
1616
1717def upgrade (* packages ):
1818 for package in packages :
1919 if system == "win32" or system == "darwin" :
20- os .system ('python -m pip install --upgrade ' + packages )
20+ os .system (f 'python -m pip install --upgrade { package } ' )
2121 elif system == "linux" :
2222 try :
2323 subprocess .run (['pip' ], check = True )
2424 except subprocess .CalledProcessError :
2525 os .system ('sudo apt install python3-pip -y' )
2626
27- os .system ('pip3 install --upgrade ' + packages )
27+ os .system (f'pip install --upgrade { package } ' )
You can’t perform that action at this time.
0 commit comments