computer
This commit is contained in:
parent
1c197311d8
commit
994d4cc179
@ -8,6 +8,7 @@ ml = os.getcwd()
|
||||
file_error = '文件丢失,请重新安装'
|
||||
uninstall = 'pip uninstall'
|
||||
ok = '删除完成'
|
||||
u = '删除'
|
||||
|
||||
|
||||
# 创建滚动区域的Canvas对象
|
||||
@ -53,6 +54,15 @@ def CatBoost():
|
||||
def XGBoost():
|
||||
os.system('pip uninstall XGBoost')
|
||||
messagebox.showinfo(uninstall, ok)
|
||||
def pandas():
|
||||
os.system(f'pip uninstall pandas')
|
||||
messagebox.showinfo(uninstall, ok)
|
||||
def pyttsx():
|
||||
os.system('pip uninstall pyttsx')
|
||||
messagebox.showinfo(uninstall, ok)
|
||||
def pylatex():
|
||||
os.system('pip uninstall pylatex')
|
||||
messagebox.showinfo(uninstall ,ok)
|
||||
def fh():
|
||||
root.destroy()
|
||||
|
||||
@ -63,6 +73,9 @@ bt_keras = Button(frame, text='keras安装', command=keras)
|
||||
bt_lightGBM = Button(frame, text='lightGBM安装', command=lightGBM)
|
||||
bt_scikit_learn = Button(frame, text='scikit-learn安装', command=scikit_learn)
|
||||
bt_XGBoost = Button(frame, text='XGBoost删除', command=XGBoost)
|
||||
bt_pandas = Button(frame ,text=f'pandas{u}', command=pandas)
|
||||
bt_pyttsx = Button(frame , text=f'pyttsx{u}', command=pyttsx)
|
||||
bt_pylatex = Button(frame , text=f'pylatex{u}', command=pylatex)
|
||||
bt_openai = Button(frame, text='openai删除', command=openai)
|
||||
bt_fh = Button(frame, text='返回', command=fh)
|
||||
|
||||
@ -73,6 +86,9 @@ bt_pytorch.pack()
|
||||
bt_keras.pack()
|
||||
bt_lightGBM.pack()
|
||||
bt_XGBoost.pack()
|
||||
bt_pandas.pack()
|
||||
bt_pyttsx.pack()
|
||||
bt_pylatex.pack()
|
||||
bt_scikit_learn.pack()
|
||||
bt_openai.pack()
|
||||
bt_fh.pack()
|
||||
@ -80,5 +96,5 @@ bt_fh.pack()
|
||||
|
||||
# mainloop
|
||||
root.title('delete')
|
||||
root.geometry('150x150+400+650')
|
||||
root.geometry('200x220+400+650')
|
||||
root.mainloop()
|
@ -9,6 +9,7 @@ file_error = '文件丢失,请重新安装'
|
||||
ok = '安装完成'
|
||||
install = 'pip install'
|
||||
i = '-i https://mirrors.aliyun.com/pypi/simple/'
|
||||
i2 = '安装'
|
||||
|
||||
# 创建滚动区域的Canvas对象
|
||||
canvas = Canvas(root, width=280, height=280, scrollregion=(0, 0, 500, 500))
|
||||
@ -58,6 +59,9 @@ def pyttsx():
|
||||
def pylatex():
|
||||
os.system(f'pip install pylatex {i}')
|
||||
messagebox.showinfo(install , ok)
|
||||
def XGBoost():
|
||||
os.system(f'pip install XGBoost {i}')
|
||||
messagebox.showinfo(install ,ok)
|
||||
def fh():
|
||||
root.destroy()
|
||||
|
||||
@ -68,8 +72,11 @@ bt_pytorch = Button(frame, text='pytorch安装', command=pytorch)
|
||||
bt_keras = Button(frame, text='keras安装', command=keras)
|
||||
bt_lightGBM = Button(frame, text='lightGBM安装', command=lightGBM)
|
||||
bt_pandas = Button(frame, text='pandas安装', command=pandas)
|
||||
bt_pyttsx = Button(frame, text='pyttsx安装', command=pyttsx)
|
||||
bt_pylatex = Button(frame, text='pylatex安装', command=pylatex)
|
||||
bt_scikit_learn = Button(frame, text='scikit-learn安装', command=scikit_learn)
|
||||
bt_openai = Button(frame, text='openai安装', command=openai)
|
||||
bt_XGBoost = Button(frame ,text='XGBoost安装', command=XGBoost)
|
||||
bt_fh = Button(frame, text='返回', command=fh)
|
||||
|
||||
# pack
|
||||
@ -80,6 +87,9 @@ bt_keras.pack()
|
||||
bt_lightGBM.pack()
|
||||
bt_pandas.pack()
|
||||
bt_scikit_learn.pack()
|
||||
bt_XGBoost.pack()
|
||||
bt_pyttsx.pack()
|
||||
bt_pylatex.pack()
|
||||
bt_openai.pack()
|
||||
bt_fh.pack()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user