pip helper

This commit is contained in:
dengrb1 2023-05-08 18:07:42 +08:00 committed by GitHub
parent 2f71ff24af
commit 21de46252b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -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()

View File

@ -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()