7 Commits
v1.0 ... v1.2

Author SHA1 Message Date
dengrb1
2f71ff24af setup_readme 2023-05-07 18:22:06 +08:00
dengrb1
22e78b1b72 pip helper 2023-05-07 17:58:36 +08:00
dengrb1
0955fd1568 install 2023-05-07 12:38:46 +08:00
dengrb1
c9aa91e7a8 update 2023-05-07 10:01:10 +08:00
dengrb1
4899051615 pip helper 2023-05-07 09:59:57 +08:00
dengrb1
87d42f2e5b pip helper 2023-05-06 22:55:48 +08:00
dengrb1
7e9c3ebd54 pip helper 2023-05-06 22:53:43 +08:00
10 changed files with 116 additions and 10 deletions

View File

@@ -7,6 +7,7 @@ root = Tk()
ml = os.getcwd() ml = os.getcwd()
file_error = '文件丢失!请重新安装' file_error = '文件丢失!请重新安装'
ok2 = "删除完成" ok2 = "删除完成"
uninstall = 'pip uninstall'
def pyqt_remove(): def pyqt_remove():
@@ -22,12 +23,20 @@ def pygame_remove():
os.system('pip uninstall pygame') os.system('pip uninstall pygame')
messagebox.showinfo('pip uninstall', ok2) messagebox.showinfo('pip uninstall', ok2)
pass pass
def Matplotlib():
os.system('pip uninstall Matplotlib')
messagebox.showinfo(uninstall, ok2)
def Seaborn():
os.system('pip uninstall Seaborn')
messagebox.showinfo(uninstall, ok2)
def fh(): def fh():
root.destroy() root.destroy()
# button # button
bt_pq5 = Button(root, text='pyqt5删除', command=pyqt_remove) bt_pq5 = Button(root, text='pyqt5删除', command=pyqt_remove)
bt_pygame = Button(root, text='pygame删除', command=pygame_remove) bt_pygame = Button(root, text='pygame删除', command=pygame_remove)
bt_matplotlib = Button(root, text='matplotlib删除', command=Matplotlib)
bt_seaborn = Button(root, text='Seaborn删除', command=Seaborn)
bt_wxpython = Button(root, text='wxpython删除', command=wxpython_remove) bt_wxpython = Button(root, text='wxpython删除', command=wxpython_remove)
bt_fh = Button(root, text='返回', command=fh) bt_fh = Button(root, text='返回', command=fh)
@@ -35,11 +44,13 @@ bt_fh = Button(root, text='返回', command=fh)
Label(root, text='GUI删除').pack() Label(root, text='GUI删除').pack()
bt_pq5.pack() bt_pq5.pack()
bt_pygame.pack() bt_pygame.pack()
bt_matplotlib.pack()
bt_seaborn.pack()
bt_wxpython.pack() bt_wxpython.pack()
bt_fh.pack() bt_fh.pack()
# mainloop # mainloop
root.title('GUI') root.title('GUI')
root.geometry('200x200+400+500') root.geometry('200x230+400+500')
root.mainloop() root.mainloop()

View File

@@ -18,6 +18,12 @@ def wxpython():
def pygame(): def pygame():
os.system("pip install pygame") os.system("pip install pygame")
messagebox.showinfo(install, ok) messagebox.showinfo(install, ok)
def Matplotlib():
os.system('pip install Matplotlib')
messagebox.showinfo(install, ok)
def Seaborn():
os.system('pip install Seaborn')
messagebox.showinfo(install, ok)
def fh(): def fh():
root.destroy() root.destroy()
@@ -25,18 +31,22 @@ def fh():
# Button # Button
bt_qt = Button(root, text='pyqt5安装', command=pyqt5) bt_qt = Button(root, text='pyqt5安装', command=pyqt5)
bt_pygame = Button(root, text='pygame安装', command=pygame) bt_pygame = Button(root, text='pygame安装', command=pygame)
bt_matplotlib = Button(root, text='matplotlib安装', command=Matplotlib)
bt_seaborn = Button(root, text='Seaborn安装', command=Seaborn)
bt_wx = Button(root, text='wxpython安装', command=wxpython) bt_wx = Button(root, text='wxpython安装', command=wxpython)
bt_fh = Button(root, text='返回', command=fh) bt_fh = Button(root, text='返回', command=fh)
# pack and Label # pack and Label
Label(root, text="GUI install").pack() Label(root, text="GUI").pack()
bt_qt.pack() bt_qt.pack()
bt_pygame.pack() bt_pygame.pack()
bt_matplotlib.pack()
bt_seaborn.pack()
bt_wx.pack() bt_wx.pack()
bt_fh.pack() bt_fh.pack()
# mainloop # mainloop
root.title("GUI") root.title("GUI")
root.geometry('200x200+400+400') root.geometry('200x230+400+400')
root.mainloop() root.mainloop()

View File

@@ -23,9 +23,6 @@ def install():
def delete(): def delete():
jc("delete") jc("delete")
def gk():
jc("gk")
def update(): def update():
jc("update") jc("update")
@@ -34,17 +31,20 @@ def exit_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()

38
computer_delete.pyw Normal file
View File

@@ -0,0 +1,38 @@
from tkinter import *
from tkinter import messagebox
import os
root = Tk()
ml = os.getcwd()
file_error = '文件丢失,请重新安装'
uninstall = 'pip uninstall'
ok = '删除完成'
# def
def TensorFlow():
os.system('pip uninstall TensorFlow')
messagebox.showinfo(uninstall, ok)
def pytorch():
os.system('pip uninstall pytorch')
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_fh = Button(root, text='返回', command=fh)
# pack
Label(root, text='机器学习类库删除').pack()
bt_TensorFlow.pack()
bt_pytorch.pack()
bt_fh.pack()
# mainloop
root.title('delete')
root.geometry('150x150+400+650')
root.mainloop()

38
computer_install.pyw Normal file
View File

@@ -0,0 +1,38 @@
from tkinter import *
from tkinter import messagebox
import os
root = Tk()
ml = os.getcwd()
file_error = '文件丢失,请重新安装'
ok = '安装完成'
install = 'pip install'
# def
def tensorFlow():
os.system('pip install TensorFlow')
messagebox.showinfo(install, ok)
def pytorch():
os.system('pip install pytorch')
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_fh = Button(root, text='返回', command=fh)
# pack
Label(root, text='机器学习类库安装').pack()
bt_tensorFlow.pack()
bt_pytorch.pack()
bt_fh.pack()
# mainloop
root.title('install')
root.geometry('150x150+400+700')
root.mainloop()

View File

@@ -37,6 +37,8 @@ def GUI_delete():
def web_delete(): def web_delete():
open_exe('web_delete') open_exe('web_delete')
pass pass
def computer_delete():
open_exe('computer_delete')
def pyinstaller_remove(): def pyinstaller_remove():
os.system('pip uninstall pyinstaller') os.system('pip uninstall pyinstaller')
messagebox.showinfo('pip uninstall', ok2) messagebox.showinfo('pip uninstall', ok2)
@@ -64,6 +66,7 @@ def fh():
# Button # Button
remove_GUI = Button(frame, text='GUI类删除', command=GUI_delete).pack() remove_GUI = Button(frame, text='GUI类删除', command=GUI_delete).pack()
remove_web = Button(frame, text='web类删除', command=web_delete).pack() remove_web = Button(frame, text='web类删除', command=web_delete).pack()
remove_computer = Button(frame, text='机器学习类删除', command=computer_delete).pack()
remove_pyinstaller = Button(frame, text='pyinstaller删除', command=pyinstaller_remove).pack() remove_pyinstaller = Button(frame, text='pyinstaller删除', command=pyinstaller_remove).pack()
remove_tqdm = Button(frame, text='tqdm删除', command=tqdm_remove).pack() remove_tqdm = Button(frame, text='tqdm删除', command=tqdm_remove).pack()
remove_nuitka = Button(frame, text='nuitka删除', command=nuitka_remove).pack() remove_nuitka = Button(frame, text='nuitka删除', command=nuitka_remove).pack()

View File

@@ -39,6 +39,8 @@ def gui_install():
open_exe('GUI_install') open_exe('GUI_install')
def web_install(): def web_install():
open_exe('web_install') open_exe('web_install')
def computer_install():
open_exe('computer_install')
def pyinstaller(): def pyinstaller():
os.system('pip install pyinstaller') os.system('pip install pyinstaller')
messagebox.showinfo('pip install', ok) messagebox.showinfo('pip install', ok)
@@ -65,6 +67,7 @@ def fh():
# Button # Button
pip_gui = Button(frame, text='GUI类安装', command=gui_install).pack() pip_gui = Button(frame, text='GUI类安装', command=gui_install).pack()
pip_web = Button(frame, text='web类安装', command=web_install).pack() pip_web = Button(frame, text='web类安装', command=web_install).pack()
pip_computer = Button(frame, text='机器学习类库安装', command=computer_install).pack()
pip_pyinstaller = Button(frame, text='pyinstall安装', command=pyinstaller).pack() pip_pyinstaller = Button(frame, text='pyinstall安装', command=pyinstaller).pack()
pip_tqdm = Button(frame, text='tqdm安装', command=tqdm).pack() pip_tqdm = Button(frame, text='tqdm安装', command=tqdm).pack()
pip_nuitka = Button(frame, text='nuitka安装', command=nuitka).pack() pip_nuitka = Button(frame, text='nuitka安装', command=nuitka).pack()
@@ -75,5 +78,5 @@ pip_fh = Button(frame,text='返回', command=fh).pack()
# mainloop # mainloop
root.title('安装') root.title('安装')
root.geometry('200x250+400+600') root.geometry('200x270+400+600')
root.mainloop() root.mainloop()

1
setup_readme.txt Normal file
View File

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

View File

@@ -20,8 +20,10 @@ quit_bt = Button(root, text='返回', command=quit_exe).pack(side=RIGHT)
Label(root, text='更新日志').pack() Label(root, text='更新日志').pack()
text = '''0.1.0 暂无日志 text = '''0.1.0 暂无日志
1.0 正式版本。修复BUG改正更新日志显示问题 1.0 正式版本。修复BUG改正更新日志显示问题
1.1 加入机器学习库安装修复BUG删除“关于”模块
1.2 加入更多可视化库都在gui安装和删除类里面修复一些BUG
当前版本:1.0 (Not beta or demo)''' 当前版本:1.2 (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)