pip helper
This commit is contained in:
parent
2f71ff24af
commit
21de46252b
@ -17,18 +17,23 @@ def TensorFlow():
|
||||
def pytorch():
|
||||
os.system('pip uninstall pytorch')
|
||||
messagebox.showinfo(uninstall, ok)
|
||||
def openai():
|
||||
os.system('pip uninstall openai')
|
||||
messagebox.showinfo(uninstall, ok)
|
||||
def fh():
|
||||
root.destroy()
|
||||
|
||||
# Button
|
||||
bt_TensorFlow = Button(root, text='TensorFlow删除', command=TensorFlow)
|
||||
bt_pytorch = Button(root, text='pytorch删除', command=pytorch)
|
||||
bt_openai = Button(root, text='openai删除', command=openai)
|
||||
bt_fh = Button(root, text='返回', command=fh)
|
||||
|
||||
# pack
|
||||
Label(root, text='机器学习类库删除').pack()
|
||||
bt_TensorFlow.pack()
|
||||
bt_pytorch.pack()
|
||||
bt_openai.pack()
|
||||
bt_fh.pack()
|
||||
|
||||
|
||||
|
@ -17,18 +17,23 @@ def tensorFlow():
|
||||
def pytorch():
|
||||
os.system('pip install pytorch')
|
||||
messagebox.showinfo(install, ok)
|
||||
def openai():
|
||||
os.system('pip install openai')
|
||||
messagebox.showinfo(install, ok)
|
||||
def fh():
|
||||
root.destroy()
|
||||
|
||||
# Button
|
||||
bt_tensorFlow = Button(root, text='TensorFlow安装', command=tensorFlow)
|
||||
bt_pytorch = Button(root, text='pytorch安装', command=pytorch)
|
||||
bt_openai = Button(root, text='openai安装', command=openai)
|
||||
bt_fh = Button(root, text='返回', command=fh)
|
||||
|
||||
# pack
|
||||
Label(root, text='机器学习类库安装').pack()
|
||||
bt_tensorFlow.pack()
|
||||
bt_pytorch.pack()
|
||||
bt_openai.pack()
|
||||
bt_fh.pack()
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user