14 Commits
v1.1 ... v1.3

Author SHA1 Message Date
dengrb1
dec02d04cb README 2023-05-09 18:33:03 +08:00
dengrb1
67355a1355 pip helper 2023-05-09 18:21:57 +08:00
dengrb1
114a0c8a8e GUI 2023-05-09 13:24:54 +08:00
dengrb1
cefcd57d59 GUI 2023-05-09 13:21:54 +08:00
dengrb1
1e809e056e update 2023-05-09 12:20:45 +08:00
dengrb1
8022b975cd GUI 2023-05-08 22:05:16 +08:00
dengrb1
11e2890099 pip helper 2023-05-08 22:02:36 +08:00
dengrb1
ffcf25817b update 2023-05-08 21:33:26 +08:00
dengrb1
f8133116cf update 2023-05-08 21:29:20 +08:00
dengrb1
4057af6137 pip helper 2023-05-08 20:40:48 +08:00
dengrb1
1d3a7ecdd6 readme 2023-05-08 20:16:54 +08:00
dengrb1
21de46252b pip helper 2023-05-08 18:07:42 +08:00
dengrb1
2f71ff24af setup_readme 2023-05-07 18:22:06 +08:00
dengrb1
22e78b1b72 pip helper 2023-05-07 17:58:36 +08:00
11 changed files with 119 additions and 32 deletions

View File

@@ -9,17 +9,34 @@ file_error = '文件丢失!请重新安装'
ok2 = "删除完成" ok2 = "删除完成"
uninstall = 'pip uninstall' uninstall = 'pip uninstall'
# 创建滚动区域的Canvas对象
canvas = Canvas(root, width=280, height=280, scrollregion=(0, 0, 500, 500))
def pyqt_remove(): # 创建可滚动区域的Frame对象并将其添加到Canvas中
frame = Frame(canvas)
frame.bind("<Configure>", lambda e: canvas.configure(scrollregion=canvas.bbox("all")))
canvas.create_window((0, 0), window=frame, anchor="nw")
# 创建Scrollbar对象并将其绑定到Canvas上
scrollbar = Scrollbar(root, orient="vertical", command=canvas.yview)
canvas.configure(yscrollcommand=scrollbar.set)
scrollbar.pack(side="right", fill="y")
# 显示Canvas和Scrollbar
canvas.pack(side="left", fill="both", expand=True)
def pyqt():
os.system('pip uninstall pyqt5') os.system('pip uninstall pyqt5')
os.systen('pip uninstall PyQtWebEngine') os.systen('pip uninstall PyQtWebEngine')
messagebox.showinfo('pip uninstall', ok2) messagebox.showinfo('pip uninstall', ok2)
pass pass
def wxpython_remove(): def wxpython():
os.system('pip uninstall wxpython') os.system('pip uninstall wxpython')
messagebox.showinfo('pip uninstall', ok2) messagebox.showinfo('pip uninstall', ok2)
pass pass
def pygame_remove(): def pygame():
os.system('pip uninstall pygame') os.system('pip uninstall pygame')
messagebox.showinfo('pip uninstall', ok2) messagebox.showinfo('pip uninstall', ok2)
pass pass
@@ -29,28 +46,48 @@ def Matplotlib():
def Seaborn(): def Seaborn():
os.system('pip uninstall Seaborn') os.system('pip uninstall Seaborn')
messagebox.showinfo(uninstall, ok2) messagebox.showinfo(uninstall, ok2)
def kivy():
os.system('pip uninstall kivy')
messagebox.showinfo(uninstall, ok2)
def pysimpleGUI():
os.system('pip uninstall pysimpleGUI')
messagebox.showinfo(uninstall, ok2)
def pyside6():
os.system('pip uninstall pyside6')
messagebox.showinfo(uninstall ,ok2)
def flexx():
os.system('pip uninstall flexx')
messagebox.showinfo(uninstall, ok2)
def fh(): def fh():
root.destroy() root.destroy()
# button # button
bt_pq5 = Button(root, text='pyqt5删除', command=pyqt_remove) bt_qt = Button(root, text='pyqt5删除', command=pyqt)
bt_pygame = Button(root, text='pygame删除', command=pygame_remove) bt_pygame = Button(root, text='pygame删除', command=pygame)
bt_matplotlib = Button(root, text='matplotlib删除', command=Matplotlib) bt_wxpython = Button(frame, text='wxpython删除', command=wxpython)
bt_seaborn = Button(root, text='Seaborn删除', command=Seaborn) bt_kivy = Button(frame, text='kivy删除', command=kivy)
bt_wxpython = Button(root, text='wxpython删除', command=wxpython_remove) bt_pyside = Button(frame, text='pyside6删除', command=pyside6)
bt_fh = Button(root, text='返回', command=fh) bt_flexx = Button(frame, text='flexx删除', command=flexx)
bt_matplotlib = Button(frame, text='matplatlib删除', command=Matplotlib)
bt_seaborn = Button(frame, text='seaborn删除', command=Seaborn)
bt_pysimpleGUI = Button(frame, text='pysimpleGUI删除', command=pysimpleGUI)
bt_fh = Button(frame, text='返回', command=fh)
# pack and Label # pack and Label
Label(root, text='GUI删除').pack() Label(root, text='GUI删除').pack()
bt_pq5.pack() bt_qt.pack()
bt_pyside.pack()
bt_kivy.pack()
bt_pygame.pack() bt_pygame.pack()
bt_matplotlib.pack() bt_matplotlib.pack()
bt_seaborn.pack() bt_seaborn.pack()
bt_flexx.pack()
bt_pysimpleGUI.pack()
bt_wxpython.pack() bt_wxpython.pack()
bt_fh.pack() bt_fh.pack()
# mainloop # mainloop
root.title('GUI') root.title('GUI')
root.geometry('200x230+400+500') root.geometry('200x300+100+100')
root.mainloop() root.mainloop()

View File

@@ -8,6 +8,24 @@ ml = os.getcwd()
ok = "install OK!" ok = "install OK!"
install = "Install" install = "Install"
# 创建滚动区域的Canvas对象
canvas = Canvas(root, width=280, height=280, scrollregion=(0, 0, 500, 500))
# 创建可滚动区域的Frame对象并将其添加到Canvas中
frame = Frame(canvas)
frame.bind("<Configure>", lambda e: canvas.configure(scrollregion=canvas.bbox("all")))
canvas.create_window((0, 0), window=frame, anchor="nw")
# 创建Scrollbar对象并将其绑定到Canvas上
scrollbar = Scrollbar(root, orient="vertical", command=canvas.yview)
canvas.configure(yscrollcommand=scrollbar.set)
scrollbar.pack(side="right", fill="y")
# 显示Canvas和Scrollbar
canvas.pack(side="left", fill="both", expand=True)
def pyqt5(): def pyqt5():
os.system("pip install pyqt5") os.system("pip install pyqt5")
os.systen('pip install PyQtWebEngine') os.systen('pip install PyQtWebEngine')
@@ -26,27 +44,47 @@ def Seaborn():
messagebox.showinfo(install, ok) messagebox.showinfo(install, ok)
def fh(): def fh():
root.destroy() root.destroy()
def kivy():
os.system('pip install kivy')
messagebox.showinfo(install, ok)
def pysimpleGUI():
os.system('pip install pysimpleGUI')
messagebox.showinfo(install, ok)
def pyside6():
os.system('pip install pyside6')
messagebox.showinfo(install ,ok)
def flexx():
os.system('pip install flexx')
messagebox.showinfo(install, ok)
# Button # Button
bt_qt = Button(root, text='pyqt5安装', command=pyqt5) bt_qt = Button(frame, text='pyqt5安装', command=pyqt5)
bt_pygame = Button(root, text='pygame安装', command=pygame) bt_pygame = Button(frame, text='pygame安装', command=pygame)
bt_matplotlib = Button(root, text='matplotlib安装', command=Matplotlib) bt_matplotlib = Button(frame, text='matplotlib安装', command=Matplotlib)
bt_seaborn = Button(root, text='Seaborn安装', command=Seaborn) bt_seaborn = Button(frame, text='Seaborn安装', command=Seaborn)
bt_wx = Button(root, text='wxpython安装', command=wxpython) bt_kivy = Button(frame, text='kivy安装', command=kivy)
bt_fh = Button(root, text='返回', command=fh) bt_pyside = Button(frame, text='pyside6安装', command=pyside6)
bt_flexx = Button(frame, text='flexx安装', command=flexx)
bt_pysimpleGUI = Button(frame, text='pysimpleGUI安装', command=pysimpleGUI)
bt_wx = Button(frame, text='wxpython安装', command=wxpython)
bt_fh = Button(frame, text='返回', command=fh)
# pack and Label # pack and Label
Label(root, text="GUI").pack() Label(root, text="GUI").pack()
bt_qt.pack() bt_qt.pack()
bt_pyside.pack()
bt_kivy.pack()
bt_pygame.pack() bt_pygame.pack()
bt_matplotlib.pack() bt_matplotlib.pack()
bt_seaborn.pack() bt_seaborn.pack()
bt_flexx.pack()
bt_pysimpleGUI.pack()
bt_wx.pack() bt_wx.pack()
bt_fh.pack() bt_fh.pack()
# mainloop # mainloop
root.title("GUI") root.title("GUI")
root.geometry('200x230+400+400') root.geometry('200x230+100+110')
root.mainloop() root.mainloop()

View File

@@ -1,12 +1,12 @@
# pip-helper # pip-helper
可以帮助不会使用pip安装库的人准备 可以帮助不会使用pip安装库的人准备
# 重要通知!!! # 使用方式
因为作者找不到其他的GUI库或者其他库所以作者就懒得更新了 首先在**https://github.com/dengrb1/chatgpt**里面下载最新的版本
等以后在更新把...... 然后再打开刚刚下载好的文件,然后想平时安装程序一样使用本程序吧!!!
# 作者 # 作者
邮箱drb12311@163.com 邮箱drb12311@163.com
# 之后的就没有了...... # **_之后的就没有了......_**

View File

@@ -23,28 +23,27 @@ def install():
def delete(): def delete():
jc("delete") jc("delete")
def gk():
messagebox.showerror('pip helper','因为程序问题,所以“关于”模块被删除!!!')
def update(): def update():
jc("update") jc("update")
def exit_exe(): def exit_exe():
os.system('taskkill -f -t -im python.exe')
root.destroy() root.destroy()
pass pass
def eyeryone():
messagebox.showerror('pip helper', '暂时无法使用,因为程序测试途中出现未知问题......')
# Button and Label # Button and Label
Label(root, text='pip_helper').pack() Label(root, text='pip_helper').pack()
Button(root, text='安装模式', command=install).pack() Button(root, text='安装模式', command=install).pack()
Button(root, text='删除模式', command=delete).pack() Button(root, text='删除模式', command=delete).pack()
Button(root, text='全部安装或删除', command=eyeryone).pack()
Button(root, text='更新日志', command=update).pack() Button(root, text='更新日志', command=update).pack()
Button(root, text='关于', command=gk).pack()
Button(root, text='退出', command=exit_exe).pack() Button(root, text='退出', command=exit_exe).pack()
# mainloop # mainloop
root.title('启动器') root.title('启动器')
root.geometry('200x200+400+400') root.geometry('200x220+400+400')
root.mainloop() root.mainloop()

View File

@@ -17,18 +17,23 @@ def TensorFlow():
def pytorch(): def pytorch():
os.system('pip uninstall pytorch') os.system('pip uninstall pytorch')
messagebox.showinfo(uninstall, ok) messagebox.showinfo(uninstall, ok)
def openai():
os.system('pip uninstall openai')
messagebox.showinfo(uninstall, ok)
def fh(): def fh():
root.destroy() root.destroy()
# Button # Button
bt_TensorFlow = Button(root, text='TensorFlow删除', command=TensorFlow) bt_TensorFlow = Button(root, text='TensorFlow删除', command=TensorFlow)
bt_pytorch = Button(root, text='pytorch删除', command=pytorch) bt_pytorch = Button(root, text='pytorch删除', command=pytorch)
bt_openai = Button(root, text='openai删除', command=openai)
bt_fh = Button(root, text='返回', command=fh) bt_fh = Button(root, text='返回', command=fh)
# pack # pack
Label(root, text='机器学习类库删除').pack() Label(root, text='机器学习类库删除').pack()
bt_TensorFlow.pack() bt_TensorFlow.pack()
bt_pytorch.pack() bt_pytorch.pack()
bt_openai.pack()
bt_fh.pack() bt_fh.pack()

View File

@@ -17,18 +17,23 @@ def tensorFlow():
def pytorch(): def pytorch():
os.system('pip install pytorch') os.system('pip install pytorch')
messagebox.showinfo(install, ok) messagebox.showinfo(install, ok)
def openai():
os.system('pip install openai')
messagebox.showinfo(install, ok)
def fh(): def fh():
root.destroy() root.destroy()
# Button # Button
bt_tensorFlow = Button(root, text='TensorFlow安装', command=tensorFlow) bt_tensorFlow = Button(root, text='TensorFlow安装', command=tensorFlow)
bt_pytorch = Button(root, text='pytorch安装', command=pytorch) bt_pytorch = Button(root, text='pytorch安装', command=pytorch)
bt_openai = Button(root, text='openai安装', command=openai)
bt_fh = Button(root, text='返回', command=fh) bt_fh = Button(root, text='返回', command=fh)
# pack # pack
Label(root, text='机器学习类库安装').pack() Label(root, text='机器学习类库安装').pack()
bt_tensorFlow.pack() bt_tensorFlow.pack()
bt_pytorch.pack() bt_pytorch.pack()
bt_openai.pack()
bt_fh.pack() bt_fh.pack()

View File

@@ -81,5 +81,5 @@ canvas.pack(side="left", fill="both", expand=True)
# mainloop # mainloop
root.title("delete") root.title("delete")
root.geometry("200x250+400+600") root.geometry("200x250+100+10")
root.mainloop() root.mainloop()

View File

@@ -78,5 +78,5 @@ pip_fh = Button(frame,text='返回', command=fh).pack()
# mainloop # mainloop
root.title('安装') root.title('安装')
root.geometry('200x270+400+600') root.geometry('200x270+100+50')
root.mainloop() root.mainloop()

1
setup_readme.txt Normal file
View File

@@ -0,0 +1 @@
1.2 加入更多可视化库都在gui安装和删除类里面;修复一些BUG

View File

@@ -11,7 +11,7 @@ root = Tk()
def quit_exe(): def quit_exe():
root.destroy() root.destroy()
def update_now(): def update_now():
webbrowser.open("https://kgithub.com/dengrb1/chatgpt/releases/") webbrowser.open("https://kgithub.com/dengrb1/pip-helper/releases/")
messagebox.showinfo('update', '请选择最新版本并下载运行安装程序,然后就可以更新了!') messagebox.showinfo('update', '请选择最新版本并下载运行安装程序,然后就可以更新了!')
# Label # Label
@@ -22,8 +22,10 @@ text = '''0.1.0 暂无日志
1.0 正式版本修复BUG改正更新日志显示问题 1.0 正式版本修复BUG改正更新日志显示问题
1.1 加入机器学习库安装修复BUG删除关于模块 1.1 加入机器学习库安装修复BUG删除关于模块
1.2 加入更多可视化库都在gui安装和删除类里面修复一些BUG 1.2 加入更多可视化库都在gui安装和删除类里面修复一些BUG
1.2.1 加入机器学习库openai修复BUG;一键安装所有库正在试验中......
1.3 加入更多GUI库比如pyside6, kivy等等修复一些BUG
当前版本:1.2 (Not beta or demo)''' 当前版本:1.3 (Not beta or demo)'''
text_box = ScrolledText(root) text_box = ScrolledText(root)
text_box.pack(fill=BOTH, expand=1) text_box.pack(fill=BOTH, expand=1)