diff --git a/computer_delete.pyw b/computer_delete.pyw index e31e914..be3735f 100644 --- a/computer_delete.pyw +++ b/computer_delete.pyw @@ -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() diff --git a/computer_install.pyw b/computer_install.pyw index a2f9d55..dc8e4e3 100644 --- a/computer_install.pyw +++ b/computer_install.pyw @@ -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()