pip-helper
This commit is contained in:
parent
c2ca3bc705
commit
b8f99f471f
16
delete.pyw
16
delete.pyw
@ -7,7 +7,7 @@ root = Tk()
|
|||||||
ml = os.getcwd()
|
ml = os.getcwd()
|
||||||
file_error = '文件丢失,请重新安装'
|
file_error = '文件丢失,请重新安装'
|
||||||
uninstall = 'pip uninstall'
|
uninstall = 'pip uninstall'
|
||||||
ok2 = '删除完成'
|
ok = '删除完成'
|
||||||
|
|
||||||
# 创建滚动区域的Canvas对象
|
# 创建滚动区域的Canvas对象
|
||||||
canvas = Canvas(root, width=280, height=280, scrollregion=(0, 0, 500, 500))
|
canvas = Canvas(root, width=280, height=280, scrollregion=(0, 0, 500, 500))
|
||||||
@ -43,24 +43,27 @@ def maths_delete():
|
|||||||
open_exe('maths_delete')
|
open_exe('maths_delete')
|
||||||
def pyinstaller_remove():
|
def pyinstaller_remove():
|
||||||
os.system('pip uninstall pyinstaller')
|
os.system('pip uninstall pyinstaller')
|
||||||
messagebox.showinfo('pip uninstall', ok2)
|
messagebox.showinfo('pip uninstall', ok)
|
||||||
pass
|
pass
|
||||||
def tqdm_remove():
|
def tqdm_remove():
|
||||||
os.system('pip uninstall tqdm')
|
os.system('pip uninstall tqdm')
|
||||||
messagebox.showinfo('pip uninstall', ok2)
|
messagebox.showinfo('pip uninstall', ok)
|
||||||
pass
|
pass
|
||||||
def nuitka_remove():
|
def nuitka_remove():
|
||||||
os.system('pip uninstall nuitka')
|
os.system('pip uninstall nuitka')
|
||||||
messagebox.showinfo(uninstall, ok2)
|
messagebox.showinfo(uninstall, ok)
|
||||||
pass
|
pass
|
||||||
def pywin32_remove():
|
def pywin32_remove():
|
||||||
os.system('pip uninstall pywin32')
|
os.system('pip uninstall pywin32')
|
||||||
messagebox.showinfo(uninstall, ok2)
|
messagebox.showinfo(uninstall, ok)
|
||||||
pass
|
pass
|
||||||
def numpy_remove():
|
def numpy_remove():
|
||||||
os.system('pip uninstall numpy')
|
os.system('pip uninstall numpy')
|
||||||
messagebox.showinfo(uninstall, ok2)
|
messagebox.showinfo(uninstall, ok)
|
||||||
pass
|
pass
|
||||||
|
def pygithub_remove():
|
||||||
|
os.system('pip uninstall pygithub')
|
||||||
|
messagebox.showinfo(uninstall, ok)
|
||||||
def fh():
|
def fh():
|
||||||
root.destroy()
|
root.destroy()
|
||||||
|
|
||||||
@ -74,6 +77,7 @@ remove_computer = Button(frame, text='机器学习类删除', command=computer_d
|
|||||||
remove_maths = Button(frame, text='maths类删除', command=maths_delete).pack()
|
remove_maths = Button(frame, text='maths类删除', command=maths_delete).pack()
|
||||||
remove_pyinstaller = Button(frame, text='pyinstaller删除', command=pyinstaller_remove).pack()
|
remove_pyinstaller = Button(frame, text='pyinstaller删除', command=pyinstaller_remove).pack()
|
||||||
remove_tqdm = Button(frame, text='tqdm删除', command=tqdm_remove).pack()
|
remove_tqdm = Button(frame, text='tqdm删除', command=tqdm_remove).pack()
|
||||||
|
remove_pygithub = Button(frame, text='pygithub删除', command=pygithub_remove).pack()
|
||||||
remove_nuitka = Button(frame, text='nuitka删除', command=nuitka_remove).pack()
|
remove_nuitka = Button(frame, text='nuitka删除', command=nuitka_remove).pack()
|
||||||
remove_pywin32 = Button(frame, text='pywin32删除', command=pywin32_remove).pack()
|
remove_pywin32 = Button(frame, text='pywin32删除', command=pywin32_remove).pack()
|
||||||
remove_numpy = Button(frame ,text="numpy删除", command=numpy_remove).pack()
|
remove_numpy = Button(frame ,text="numpy删除", command=numpy_remove).pack()
|
||||||
|
@ -8,6 +8,7 @@ ml = os.getcwd()
|
|||||||
ok = '安装成功'
|
ok = '安装成功'
|
||||||
install = 'pip install'
|
install = 'pip install'
|
||||||
file_error = '文件丢失,请重新安装'
|
file_error = '文件丢失,请重新安装'
|
||||||
|
i = '-i https://mirrors.aliyun.com/pypi/simple/'
|
||||||
|
|
||||||
|
|
||||||
# 创建滚动区域的Canvas对象
|
# 创建滚动区域的Canvas对象
|
||||||
@ -59,6 +60,9 @@ def tqdm():
|
|||||||
os.system('pip install tqdm -i https://mirrors.aliyun.com/pypi/simple/')
|
os.system('pip install tqdm -i https://mirrors.aliyun.com/pypi/simple/')
|
||||||
messagebox.showinfo(install, ok)
|
messagebox.showinfo(install, ok)
|
||||||
pass
|
pass
|
||||||
|
def pygithub():
|
||||||
|
os.system(f'pip install pygithub {i}')
|
||||||
|
messagebox.showinfo(install,ok)
|
||||||
def fh():
|
def fh():
|
||||||
root.destroy()
|
root.destroy()
|
||||||
|
|
||||||
@ -69,6 +73,7 @@ pip_computer = Button(frame, text='机器学习类库安装', command=computer_i
|
|||||||
pip_maths = Button(frame, text='maths类安装', command=maths_install)
|
pip_maths = Button(frame, text='maths类安装', command=maths_install)
|
||||||
pip_pyinstaller = Button(frame, text='pyinstaller安装', command=pyinstaller)
|
pip_pyinstaller = Button(frame, text='pyinstaller安装', command=pyinstaller)
|
||||||
pip_tqdm = Button(frame, text='tqdm安装', command=tqdm)
|
pip_tqdm = Button(frame, text='tqdm安装', command=tqdm)
|
||||||
|
pip_pygithub = Button(frame, text='pygithub安装', command=pygithub)
|
||||||
pip_nuitka = Button(frame, text='nuitka安装', command=nuitka)
|
pip_nuitka = Button(frame, text='nuitka安装', command=nuitka)
|
||||||
pip_pywin32 = Button(frame, text='pywin32安装', command=pywin32)
|
pip_pywin32 = Button(frame, text='pywin32安装', command=pywin32)
|
||||||
pip_fh = Button(frame,text='返回', command=fh)
|
pip_fh = Button(frame,text='返回', command=fh)
|
||||||
@ -82,6 +87,7 @@ pip_computer.pack()
|
|||||||
pip_maths.pack()
|
pip_maths.pack()
|
||||||
pip_pyinstaller.pack()
|
pip_pyinstaller.pack()
|
||||||
pip_tqdm.pack()
|
pip_tqdm.pack()
|
||||||
|
pip_pygithub.pack()
|
||||||
pip_nuitka.pack()
|
pip_nuitka.pack()
|
||||||
pip_pywin32.pack()
|
pip_pywin32.pack()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user