101 Commits
v1.9 ... main

Author SHA1 Message Date
dengrb1
4aa890dabd 2023/8/30 update 2023-08-30 14:08:55 +08:00
dengrb1
cd15545ec3 2023/8/30 update 2023-08-30 14:06:11 +08:00
dengrb1
e2fc8dc03e 2023/8/30 update 2023-08-30 14:00:08 +08:00
dengrb1
b287dcfba9 2023/8/30 update 2023-08-30 13:54:42 +08:00
dengrb1
8e231cc943 2023/8/30 update 2023-08-30 12:31:45 +08:00
dengrb1
31d59e7445 2023/8/30 update 2023-08-30 12:30:12 +08:00
dengrb1
2ebc8e53c6 2023/8/28 update 2023-08-28 14:08:00 +08:00
dengrb1
2260d2f13d Merge pull request #1 from dengrb1/develop
Develop
2023-08-28 11:02:35 +08:00
dengrb1
90b02bdd4c 2023/8/28 update 2023-08-28 11:00:35 +08:00
dengrb1
111310b94b 2023/8/27 update 2023-08-27 11:58:51 +08:00
dengrb1
2a869217a7 2023/8/27 update 2023-08-27 11:52:33 +08:00
dengrb1
0f51fe5616 2023/8/27 update 2023-08-27 11:52:28 +08:00
dengrb1
2a811acc99 2023/8/27 update 2023-08-27 11:49:15 +08:00
dengrb1
b7c10efa76 2023/8/27 update 2023-08-27 11:49:10 +08:00
dengrb1
ec4817a226 2023/8/27 update 2023-08-27 11:49:04 +08:00
dengrb1
cf5391eed5 2023/8/27 update 2023-08-27 11:48:58 +08:00
dengrb1
c06fe6cb13 2023/8/27 update 2023-08-27 11:45:22 +08:00
dengrb1
28b8b0dc2f 2023/8/26 update 2023-08-26 11:07:37 +08:00
dengrb1
363200fdb5 2023/8/26 update 2023-08-26 11:07:31 +08:00
dengrb1
aa1b9a1182 2023/8/26 update 2023-08-26 11:07:21 +08:00
dengrb1
8505f93fab 2023/8/26 update 2023-08-26 11:06:40 +08:00
dengrb1
a9132622f0 2023/8/26 update 2023-08-26 11:06:19 +08:00
dengrb1
fa115b8b32 today update 2023-07-25 23:59:27 +08:00
dengrb1
994d4cc179 computer 2023-07-25 18:37:17 +08:00
dengrb1
1c197311d8 update 2023-07-25 13:51:41 +08:00
dengrb1
e711f5636b readme 2023-05-26 22:40:14 +08:00
dengrb1
b8f99f471f pip-helper 2023-05-26 17:31:11 +08:00
dengrb1
c2ca3bc705 update 2023-05-26 17:20:42 +08:00
dengrb1
61736e53eb update 2023-05-26 17:19:38 +08:00
dengrb1
09af622168 update 2023-05-26 17:18:28 +08:00
dengrb1
a0dfeaeb01 maths_delete 2023-05-14 22:51:51 +08:00
dengrb1
5ea12cb433 python_jc 2023-05-13 13:00:29 +08:00
dengrb1
0e4ccad068 python_jc 2023-05-12 23:00:19 +08:00
dengrb1
14d13cf813 python_jc 2023-05-12 22:54:26 +08:00
dengrb1
a502a19fcd python_jc 2023-05-12 22:40:41 +08:00
dengrb1
3ddf7424de python_jc 2023-05-12 22:25:13 +08:00
dengrb1
de1e57179e pip helper 2023-05-12 21:48:14 +08:00
dengrb1
65d292fb54 python_jc 2023-05-12 21:44:50 +08:00
dengrb1
738bfe35d6 python_jc 2023-05-12 21:42:26 +08:00
dengrb1
0b7b7585d5 pip helper 2023-05-12 21:38:02 +08:00
dengrb1
8555df53ec pip helper 2023-05-12 21:20:20 +08:00
dengrb1
87f50a7cc1 client 2023-05-12 21:07:09 +08:00
dengrb1
9d00ade094 update 2023-05-12 20:54:20 +08:00
dengrb1
70b1b2245d pip helper 2023-05-12 20:54:08 +08:00
dengrb1
a638d34e4a pip helper 2023-05-12 20:19:58 +08:00
dengrb1
7c6873a729 pip helper 2023-05-12 19:30:07 +08:00
dengrb1
45403f5d3d pip helper 2023-05-12 19:18:23 +08:00
dengrb1
178591eaa9 pip helper 2023-05-12 13:28:36 +08:00
dengrb1
8b4b1186bc pip helper 2023-05-11 23:09:20 +08:00
dengrb1
7a76d4c7c8 update 2023-05-11 22:20:00 +08:00
dengrb1
9da156f37c pip helper 2023-05-11 22:03:12 +08:00
dengrb1
0df6de9314 update 2023-05-11 13:23:37 +08:00
dengrb1
b1822867ed update 2023-05-11 13:15:16 +08:00
dengrb1
0e4aeb62d2 pip helper 2023-05-11 13:11:38 +08:00
dengrb1
5313f6d06e pip helper 2023-05-11 13:04:03 +08:00
dengrb1
97bd44f6bd pip helper 2023-05-11 11:54:10 +08:00
dengrb1
1ad00b059d update 2023-05-10 18:23:45 +08:00
dengrb1
d516496935 python_jc 2023-05-10 17:44:39 +08:00
dengrb1
fbf21c7259 pip helper 2023-05-10 17:36:23 +08:00
dengrb1
936eae1054 pip helper 2023-05-10 17:33:03 +08:00
dengrb1
e5524e33e3 pip helper 2023-05-10 13:24:35 +08:00
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
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
dengrb1
00ceb35fab pip helper 2023-05-06 21:52:59 +08:00
dengrb1
88a98d1001 pip helper 2023-05-06 17:29:43 +08:00
dengrb1
57fcdcb6f9 delete_test 2023-05-06 17:26:19 +08:00
dengrb1
563143c9be update 2023-05-06 13:34:53 +08:00
dengrb1
0833e152ff update 2023-05-06 13:33:53 +08:00
dengrb1
0443121b59 client 2023-05-06 13:28:32 +08:00
dengrb1
806d78ba4e pip helper 2023-05-06 13:26:10 +08:00
dengrb1
555f02de10 pip helper 2023-05-06 13:23:18 +08:00
dengrb1
7b9bec13dc pip helper 2023-05-06 13:18:39 +08:00
dengrb1
4fe5a716f1 chatWEB 2023-05-06 13:16:09 +08:00
dengrb1
ea3b4153b6 update 2023-05-06 13:06:42 +08:00
dengrb1
1c1ff49f81 pip helper 2023-05-05 13:34:36 +08:00
dengrb1
db8c97de8c delete 2023-05-05 12:33:22 +08:00
dengrb1
daf40f39ad run_powershell 2023-05-05 12:24:01 +08:00
dengrb1
95b969c899 update 2023-05-05 12:18:46 +08:00
dengrb1
e2f75c339d README 2023-05-05 11:52:02 +08:00
dengrb1
5b1c349bf8 pip helper 2023-05-04 17:38:12 +08:00
dengrb1
35f48dc36b update 2023-05-04 17:30:35 +08:00
dengrb1
20bfe2a228 pip helper 2023-05-03 00:32:10 +00:00
dengrb1
e1100351c5 README 2023-05-02 08:55:27 +00:00
dengrb1
25c0b4fc2c install 2023-05-01 15:41:19 +00:00
27 changed files with 1477 additions and 151 deletions

89
GUI_delete.pyw Normal file
View File

@@ -0,0 +1,89 @@
from tkinter import *
from tkinter import messagebox
import os
root = Tk()
ml = os.getcwd()
file_error = '文件丢失!请重新安装'
ok2 = "删除完成"
uninstall = 'pip uninstall'
# 创建滚动区域的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 pyqt():
os.system('pip uninstall pyqt5')
os.systen('pip uninstall PyQtWebEngine')
messagebox.showinfo('pip uninstall', ok2)
pass
def wxpython():
os.system('pip uninstall wxpython')
messagebox.showinfo('pip uninstall', ok2)
pass
def Matplotlib():
os.system('pip uninstall Matplotlib')
messagebox.showinfo(uninstall, ok2)
def Seaborn():
os.system('pip uninstall Seaborn')
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():
root.destroy()
# button
bt_fh = Button(frame, text='返回', command=fh)
bt_qt = Button(root, text='pyqt5删除', command=pyqt)
bt_wx = Button(frame, text='wxpython删除', command=wxpython)
bt_kivy = Button(frame, text='kivy删除', command=kivy)
bt_pyside = Button(frame, text='pyside6删除', command=pyside6)
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)
# pack and Label
Label(root, text='GUI删除').pack()
bt_fh.pack()
bt_qt.pack()
bt_pyside.pack()
bt_kivy.pack()
bt_matplotlib.pack()
bt_seaborn.pack()
bt_flexx.pack()
bt_pysimpleGUI.pack()
bt_wx.pack()
# mainloop
root.title('GUI')
root.geometry('200x300+100+100')
root.mainloop()

87
GUI_install.pyw Normal file
View File

@@ -0,0 +1,87 @@
from tkinter import *
from tkinter import messagebox
import os
root = Tk()
ml = os.getcwd()
ok = "install OK!"
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():
os.system("pip install pyqt5 -i https://mirrors.aliyun.com/pypi/simple/")
os.systen('pip install PyQtWebEngine -i https://mirrors.aliyun.com/pypi/simple/')
messagebox.showinfo(install, ok)
def wxpython():
os.system("pip install wxpython -i https://mirrors.aliyun.com/pypi/simple/")
messagebox.showinfo(install, ok)
def Matplotlib():
os.system('pip install Matplotlib -i https://mirrors.aliyun.com/pypi/simple/')
messagebox.showinfo(install, ok)
def Seaborn():
os.system('pip install Seaborn -i https://mirrors.aliyun.com/pypi/simple/')
messagebox.showinfo(install, ok)
def fh():
root.destroy()
def kivy():
os.system('pip install kivy -i https://mirrors.aliyun.com/pypi/simple/')
messagebox.showinfo(install, ok)
def pysimpleGUI():
os.system('pip install pysimpleGUI -i https://mirrors.aliyun.com/pypi/simple/')
messagebox.showinfo(install, ok)
def pyside6():
os.system('pip install pyside6 -i https://mirrors.aliyun.com/pypi/simple/')
messagebox.showinfo(install ,ok)
def flexx():
os.system('pip install flexx -i https://mirrors.aliyun.com/pypi/simple/')
messagebox.showinfo(install, ok)
# Button
bt_fh = Button(frame, text='返回', command=fh)
bt_qt = Button(frame, text='pyqt5安装', command=pyqt5)
bt_matplotlib = Button(frame, text='matplotlib安装', command=Matplotlib)
bt_seaborn = Button(frame, text='Seaborn安装', command=Seaborn)
bt_kivy = Button(frame, text='kivy安装', command=kivy)
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)
# pack and Label
Label(root, text="GUI").pack()
bt_fh.pack()
bt_qt.pack()
bt_pyside.pack()
bt_kivy.pack()
bt_matplotlib.pack()
bt_seaborn.pack()
bt_flexx.pack()
bt_pysimpleGUI.pack()
bt_wx.pack()
# mainloop
root.title("GUI")
root.geometry('200x230+100+110')
root.mainloop()

View File

@@ -1,5 +1,27 @@
# pip-helper # pip-helper
可以帮助不会使用pip安装库的人准备 可以帮助不会使用pip安装库的人准备
# 使用方式
首先在**https://github.com/dengrb1/pip-helper**里面下载最新的版本
然后再打开刚刚下载好的文件,然后想平时安装程序一样使用本程序吧!!!
# 更新日志
当前版本:1.6 (Not beta or demo)
0.1.0 暂无日志
1.0 正式版本。修复BUG改正更新日志显示问题
1.1 加入机器学习库安装修复BUG删除“关于”模块
1.2 加入更多可视化库都在gui安装和删除类里面修复一些BUG
1.2.1 加入机器学习库——openai修复BUG;一键安装所有库正在试验中......
1.3 加入更多GUI库比如pyside6, kivy等等修复一些BUG
1.4 加入pip安装检测加入更多web类库修复一些BUG
1.5 加入更多机器学习库修复一些BUG;修改pip安装检测代
1.5.1 修改pip源让下载速度变得更加快速
1.6 加入更多处理数据库修复一些BUG加入WIFI检测修改更新日志文本放置的位置加入更新pip包管理工具......
# 作者 # 作者
邮箱drb12311@163.com 邮箱drb12311@163.com
## **_之后的就没有了......_**

View File

@@ -1,37 +1,39 @@
from tkinter import * from tkinter import *
from tkinter import messagebox from tkinter import messagebox
import platform import sys
import subprocess
import os import os
root = Tk() root = Tk()
ml = os.getcwd() ml = os.getcwd()
System = platform.system()
file_error = '文件丢失,请重新安装' file_error = '文件丢失,请重新安装'
def jc(exe_name): def jc(exe_name):
if os.path.exists(os.path.join(ml,f"{exe_name}.exe")): if os.path.exists(os.path.join(ml, f"{exe_name}.exe")):
os.system(f"start {exe_name}.exe") subprocess.Popen(f"{exe_name}.exe", shell=True)
else: else:
messagebox.showerror('system',file_error) messagebox.showerror('system', file_error)
pass
def install(): def install():
jc("install") jc("install")
def delete(): def delete():
jc("delete") jc("delete")
def gk():
jc("gk")
def update(): def update():
jc("update") jc("update")
def exit_exe(): def exit_exe():
root.destroy() root.destroy()
pass
def eyeryone():
messagebox.showerror('pip helper', '暂时无法使用,因为程序测试途中出现未知问题......')
# Button and Label # Button and Label
@@ -39,11 +41,11 @@ 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=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()
Label(root, text='version 1.7 @2023-2024 dengrb1').pack()
# mainloop # mainloop
root.title('启动器') root.title('选择')
root.geometry('200x200+400+400') root.geometry('200x220+400+400')
root.mainloop() root.mainloop()

20
command.py Normal file
View File

@@ -0,0 +1,20 @@
import os
from time import sleep
def run():
for i in range(4):
os.system('start powershell')
pass
pass
# mainloop
print('正在启动')
sleep(0.666)
print('Starting up')
sleep(0.22222)
run()
# exit
exit()

101
computer_delete.pyw Normal file
View File

@@ -0,0 +1,101 @@
from tkinter import *
from tkinter import messagebox
import os
root = Tk()
ml = os.getcwd()
file_error = '文件丢失,请重新安装'
uninstall = 'pip uninstall'
ok = '删除完成'
u = '删除'
# 创建滚动区域的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
def TensorFlow():
os.system('pip uninstall TensorFlow')
messagebox.showinfo(uninstall, ok)
def pytorch():
os.system('pip uninstall pytorch')
messagebox.showinfo(uninstall, ok)
def openai():
os.system('pip uninstall openai')
messagebox.showinfo(uninstall, ok)
def keras():
os.system('pip uninstall keras')
messagebox.showinfo(uninstall, ok)
def scikit_learn():
os.system('pip uninstall scikit-learn')
messagebox.showinfo(uninstall, ok)
def lightGBM():
os.system('pip uninstall lightGBM')
messagebox.showinfo(uninstall, ok)
def CatBoost():
os.system('pip uninstall CatBoost')
messagebox.showinfo(uninstall, ok)
def XGBoost():
os.system('pip uninstall XGBoost')
messagebox.showinfo(uninstall, ok)
def pandas():
os.system(f'pip uninstall pandas')
messagebox.showinfo(uninstall, ok)
def pyttsx():
os.system('pip uninstall pyttsx')
messagebox.showinfo(uninstall, ok)
def pylatex():
os.system('pip uninstall pylatex')
messagebox.showinfo(uninstall ,ok)
def fh():
root.destroy()
# Button
bt_TensorFlow = Button(frame, text='TensorFlow删除', command=TensorFlow)
bt_pytorch = Button(frame, text='pytorch删除', command=pytorch)
bt_keras = Button(frame, text='keras安装', command=keras)
bt_lightGBM = Button(frame, text='lightGBM安装', command=lightGBM)
bt_scikit_learn = Button(frame, text='scikit-learn安装', command=scikit_learn)
bt_XGBoost = Button(frame, text='XGBoost删除', command=XGBoost)
bt_pandas = Button(frame ,text=f'pandas{u}', command=pandas)
bt_pyttsx = Button(frame , text=f'pyttsx{u}', command=pyttsx)
bt_pylatex = Button(frame , text=f'pylatex{u}', command=pylatex)
bt_openai = Button(frame, text='openai删除', command=openai)
bt_fh = Button(frame, text='返回', command=fh)
# pack
Label(root, text='机器学习类库删除').pack()
bt_fh.pack()
bt_TensorFlow.pack()
bt_pytorch.pack()
bt_keras.pack()
bt_lightGBM.pack()
bt_XGBoost.pack()
bt_pandas.pack()
bt_pyttsx.pack()
bt_pylatex.pack()
bt_scikit_learn.pack()
bt_openai.pack()
# mainloop
root.title('delete')
root.geometry('200x220+400+650')
root.mainloop()

101
computer_install.pyw Normal file
View File

@@ -0,0 +1,101 @@
from tkinter import *
from tkinter import messagebox
import os
root = Tk()
ml = os.getcwd()
file_error = '文件丢失,请重新安装'
ok = '安装完成'
install = 'pip install'
i = '-i https://mirrors.aliyun.com/pypi/simple/'
i2 = '安装'
# 创建滚动区域的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
def tensorFlow():
os.system('pip install TensorFlow -i https://mirrors.aliyun.com/pypi/simple/')
messagebox.showinfo(install, ok)
def pytorch():
os.system('pip install pytorch -i https://mirrors.aliyun.com/pypi/simple/')
messagebox.showinfo(install, ok)
def openai():
os.system('pip install openai -i https://mirrors.aliyun.com/pypi/simple/')
messagebox.showinfo(install, ok)
def keras():
os.system('pip install keras -i https://mirrors.aliyun.com/pypi/simple/')
messagebox.showinfo(install, ok)
def scikit_learn():
os.system('pip install scikit-learn -i https://mirrors.aliyun.com/pypi/simple/')
messagebox.showinfo(install, ok)
def lightGBM():
os.system('pip install lightGBM -i https://mirrors.aliyun.com/pypi/simple/')
messagebox.showinfo(install, ok)
def CatBoost():
os.system('pip install CatBoost -i https://mirrors.aliyun.com/pypi/simple/')
messagebox.showinfo(install,ok)
def pandas():
os.system(f'pip install pandas {i}')
messagebox.showinfo(install, ok)
def pyttsx():
os.system(f'pip install pyttsx {i}')
messagebox.showinfo(install, ok)
def pylatex():
os.system(f'pip install pylatex {i}')
messagebox.showinfo(install , ok)
def XGBoost():
os.system(f'pip install XGBoost {i}')
messagebox.showinfo(install ,ok)
def fh():
root.destroy()
# Button
bt_tensorFlow = Button(frame, text='TensorFlow安装', command=tensorFlow)
bt_palatex = Button(frame, text=0)
bt_pytorch = Button(frame, text='pytorch安装', command=pytorch)
bt_keras = Button(frame, text='keras安装', command=keras)
bt_lightGBM = Button(frame, text='lightGBM安装', command=lightGBM)
bt_pandas = Button(frame, text='pandas安装', command=pandas)
bt_pyttsx = Button(frame, text='pyttsx安装', command=pyttsx)
bt_pylatex = Button(frame, text='pylatex安装', command=pylatex)
bt_scikit_learn = Button(frame, text='scikit-learn安装', command=scikit_learn)
bt_openai = Button(frame, text='openai安装', command=openai)
bt_XGBoost = Button(frame ,text='XGBoost安装', command=XGBoost)
bt_fh = Button(frame, text='返回', command=fh)
# pack
Label(root, text='机器学习类库安装').pack()
bt_fh.pack()
bt_tensorFlow.pack()
bt_pytorch.pack()
bt_keras.pack()
bt_lightGBM.pack()
bt_pandas.pack()
bt_scikit_learn.pack()
bt_XGBoost.pack()
bt_pyttsx.pack()
bt_pylatex.pack()
bt_openai.pack()
# mainloop
root.title('install')
root.geometry('150x150+400+700')
root.mainloop()

96
delete.pyw Normal file
View File

@@ -0,0 +1,96 @@
from tkinter import *
from tkinter import messagebox
import os
import subprocess
# 创建主窗口
root = Tk()
ml = os.getcwd()
file_error = '文件丢失,请重新安装'
uninstall = 'pip uninstall'
ok = '删除完成'
# 创建滚动区域的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")
# def frame
def open_exe(exe_name):
if os.path.exists(os.path.join(ml, f"{exe_name}.exe")):
subprocess.Popen(f"{exe_name}.exe", shell=True)
else:
messagebox.showerror('install', file_error)
pass
pass
def GUI_delete():
open_exe('GUI_delete')
pass
def web_delete():
open_exe('web_delete')
pass
def computer_delete():
open_exe('computer_delete')
def maths_delete():
open_exe('maths_delete')
def game_delete():
open_exe("game_delete")
def pyinstaller_remove():
os.system('pip uninstall pyinstaller')
messagebox.showinfo('pip uninstall', ok)
pass
def tqdm_remove():
os.system('pip uninstall tqdm')
messagebox.showinfo('pip uninstall', ok)
pass
def nuitka_remove():
os.system('pip uninstall nuitka')
messagebox.showinfo(uninstall, ok)
pass
def pywin32_remove():
os.system('pip uninstall pywin32')
messagebox.showinfo(uninstall, ok)
pass
def numpy_remove():
os.system('pip uninstall numpy')
messagebox.showinfo(uninstall, ok)
pass
def pygithub_remove():
os.system('pip uninstall pygithub')
messagebox.showinfo(uninstall, ok)
def fh():
root.destroy()
# Button
Label(root, text='删除模式')
remove_fh = Button(frame, text='返回', command=fh).pack()
remove_GUI = Button(frame, text='GUI类删除', command=GUI_delete).pack()
remove_web = Button(frame, text='web类删除', command=web_delete).pack()
remove_computer = Button(frame, text='机器学习类删除', command=computer_delete).pack()
remove_maths = Button(frame, text='maths类删除', command=maths_delete).pack()
remove_pyinstaller = Button(frame, text='pyinstaller删除', command=pyinstaller_remove).pack()
remove_tqdm = Button(frame, text='tqdm删除', command=tqdm_remove).pack()
remove_pygithub = Button(frame, text='pygithub删除', command=pygithub_remove).pack()
remove_nuitka = Button(frame, text='nuitka删除', command=nuitka_remove).pack()
remove_pywin32 = Button(frame, text='pywin32删除', command=pywin32_remove).pack()
remove_numpy = Button(frame ,text="numpy删除", command=numpy_remove).pack()
# pack
canvas.pack(side="left", fill="both", expand=True)
# mainloop
root.title("delete")
root.geometry("200x250+100+10")
root.mainloop()

85
game_delete.pyw Normal file
View File

@@ -0,0 +1,85 @@
from tkinter import *
from tkinter import messagebox
import os
import sys
root = Tk()
ml = os.getcwd()
file_error = '文件丢失!请重新安装'
ok = "删除完成"
uninstall = 'pip uninstall'
# 创建滚动区域的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
def pygame():
os.system(f'pip uninstall pygame')
messagebox.showinfo(uninstall, ok)
def pyglet():
os.system(f'pip uninstall pyglet')
messagebox.showinfo(uninstall,ok)
def pyopengl():
os.system(f'pip uninstall pyopengl')
messagebox.showinfo(uninstall, ok)
def pyode():
os.system(f'pip uninstall pyode')
messagebox.showinfo(uninstall ,ok)
def panda3d():
os.system(f'pip uninstall panda3d')
messagebox.showinfo(uninstall ,ok)
def cocos2d():
os.system(f'pip uninstall cocos2d')
messagebox.showinfo(uninstall, ok)
def kivy():
os.system(f'pip uninstall kivy')
messagebox.showinfo(uninstall, ok)
def arcade():
os.system(f'pip uninstall arcade')
messagebox.showinfo(uninstall, ok)
def fh():
sys.exit()
pass
# Button
bt_fh = Button(frame, text='返回', command=fh)
bt_pygame = Button(frame, text='pygame删除', command=pygame)
bt_pyglet = Button(frame ,text='pyglet删除', command=pyglet)
bt_pyode = Button(frame, text='pyode删除', command=pyode)
bt_panda3d = Button(frame, text='panda3d删除', command=panda3d)
bt_cocos2d = Button(frame, text='cocos2d删除', command=cocos2d)
bt_kivy = Button(frame ,text='kivy删除', command=kivy)
bt_arcade = Button(frame, text='arcade删除', command=arcade)
bt_pyopengl = Button(frame, text='pyopenGL删除', command=pyopengl)
# pack
Label(root, text='游戏库删除')
bt_fh.pack()
bt_pygame.pack()
bt_pyopengl.pack()
bt_pyglet.pack()
bt_pyode.pack()
bt_panda3d.pack()
bt_cocos2d.pack()
bt_kivy.pack()
bt_arcade.pack()
# mainloop
root.title('game')
root.geometry('200x300+100+40')

88
game_install.pyw Normal file
View File

@@ -0,0 +1,88 @@
import os
import sys
from tkinter import *
from tkinter import messagebox
root = Tk()
ml = os.getcwd()
ok = "install OK!"
install = "Install"
i = "-i https://mirrors.aliyun.com/pypi/simple/"
# 创建滚动区域的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
def pygame():
os.system(f'pip install pygame {i}')
messagebox.showinfo(install, ok)
def pyglet():
os.system(f'pip install pyglet {i}')
messagebox.showinfo(install,ok)
def pyopengl():
os.system(f'pip install pyopengl {i}')
messagebox.showinfo(install, ok)
def pyode():
os.system(f'pip install pyode {i}')
messagebox.showinfo(install ,ok)
def panda3d():
os.system(f'pip install panda3d {i}')
messagebox.showinfo(install ,ok)
def cocos2d():
os.system(f'pip install cocos2d {i}')
messagebox.showinfo(install, ok)
def kivy():
os.system(f'pip install kivy {i}')
messagebox.showinfo(install, ok)
def arcade():
os.system(f'pip install arcade {i}')
messagebox.showinfo(install, ok)
def fh():
root.destroy()
exit()
pass
# Button
bt_fh = Button(frame, text='返回', command=fh)
bt_pygame = Button(frame, text='pygame安装', command=pygame)
bt_pyglet = Button(frame ,text='pyglet安装', command=pyglet)
bt_pyode = Button(frame, text='pyode安装', command=pyode)
bt_panda3d = Button(frame, text='panda3d安装', command=panda3d)
bt_cocos2d = Button(frame, text='cocos2d安装', command=cocos2d)
bt_kivy = Button(frame ,text='kivy安装', command=kivy)
bt_arcade = Button(frame, text='arcade安装', command=arcade)
bt_pyopengl = Button(frame, text='pyopenGL安装', command=pyopengl)
# pack
Label(root, text='游戏库安装').pack()
bt_fh.pack()
bt_pygame.pack()
bt_pyopengl.pack()
bt_pyglet.pack()
bt_pyode.pack()
bt_panda3d.pack()
bt_cocos2d.pack()
bt_kivy.pack()
bt_arcade.pack()
# mainloop
root.title('game')
root.geometry('200x300+100+80')
root.mainloop()

104
install.pyw Normal file
View File

@@ -0,0 +1,104 @@
from tkinter import *
from tkinter import messagebox
import os
import subprocess
# 定义内容和创建主窗口
root = Tk()
ml = os.getcwd()
ok = '安装成功'
install = 'pip install'
file_error = '文件丢失,请重新安装'
i = '-i https://mirrors.aliyun.com/pypi/simple/'
# 创建滚动区域的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
def open_exe(exe_name):
if os.path.exists(os.path.join(ml, f"{exe_name}.exe")):
subprocess.Popen(f"{exe_name}.exe", shell=True)
else:
messagebox.showerror('install', file_error)
pass
pass
def gui_install():
open_exe('GUI_install')
def web_install():
open_exe('web_install')
def computer_install():
open_exe('computer_install')
def maths_install():
open_exe('maths_install')
def game_install():
open_exe("game_install")
def pyinstaller():
os.system('pip install pyinstaller -i https://mirrors.aliyun.com/pypi/simple/')
messagebox.showinfo('pip install', ok)
pass
def nuitka():
os.system('pip install nuitka -i https://mirrors.aliyun.com/pypi/simple/')
messagebox.showinfo('pip install', ok)
pass
def pywin32():
os.system('pip install pywin32 -i https://mirrors.aliyun.com/pypi/simple/')
messagebox.showinfo(install, ok)
pass
def tqdm():
os.system('pip install tqdm -i https://mirrors.aliyun.com/pypi/simple/')
messagebox.showinfo(install, ok)
pass
def pygithub():
os.system(f'pip install pygithub {i}')
messagebox.showinfo(install,ok)
def fh():
root.destroy()
# Button
pip_gui = Button(frame, text='GUI类安装', command=gui_install)
pip_web = Button(frame, text='web类安装', command=web_install)
pip_computer = Button(frame, text='机器学习类库安装', command=computer_install)
pip_maths = Button(frame, text='maths类安装', command=maths_install)
pip_game = Button(frame, text='game类安装', command=game_install)
pip_pyinstaller = Button(frame, text='pyinstaller安装', command=pyinstaller)
pip_tqdm = Button(frame, text='tqdm安装', command=tqdm)
pip_pygithub = Button(frame, text='pygithub安装', command=pygithub)
pip_nuitka = Button(frame, text='nuitka安装', command=nuitka)
pip_pywin32 = Button(frame, text='pywin32安装', command=pywin32)
pip_fh = Button(frame,text='返回', command=fh)
# pack and label
Label(frame, text='安装列表').pack()
pip_fh.pack()
pip_gui.pack()
pip_web.pack()
pip_computer.pack()
pip_maths.pack()
pip_game.pack()
Label(frame ,text='').pack()
pip_pyinstaller.pack()
pip_tqdm.pack()
pip_pygithub.pack()
pip_nuitka.pack()
pip_pywin32.pack()
# mainloop
root.title('安装')
root.geometry('200x270+100+50')
root.mainloop()

49
jc.py
View File

@@ -1,49 +0,0 @@
import os
import webbrowser
from time import sleep
error = 0
ok = 0
ml = os.getcwd()
def jc(exe_name):
if os.path.exists(os.path.join(ml,f"{exe_name}.exe")):
ok += 1
else:
error += 1
pass
pass
def client():
jc("client")
def install():
jc("install")
def delete():
jc("delete")
def gk():
jc("gk")
def update():
jc("update")
# mainloop
client()
install()
delete()
gk()
update()
sleep(0.555)
print(f"共有{ok}个文件正常,有{error}个文件丢失!")
sleep(1)
webbrowser.open("https://github.com/dengrb1/pip-helper")
sleep(5)
exit()

83
maths_delete.pyw Normal file
View File

@@ -0,0 +1,83 @@
from tkinter import *
from tkinter import messagebox
import os
root = Tk()
ml = os.getcwd()
file_error = '文件丢失,请重新安装'
uninstall = 'pip uninstall'
ok = '删除成功!'
i = '-i https://mirrors.aliyun.com/pypi/simple/'
# 创建滚动区域的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
def Numpy():
os.system(f'pip uninstall numpy')
messagebox.showinfo(uninstall, ok)
def scipy():
os.system(f'pip uninstall scipy')
messagebox.showinfo(uninstall, ok)
def sympy():
os.system(f'pip uninstall sympy')
messagebox.showinfo(uninstall, ok)
def pandas():
os.system(f'pip uninstall pandas')
messagebox.showinfo(uninstall, ok)
def pyomo():
os.system(f'pip uninstall pyomo')
messagebox.showinfo(uninstall, ok)
def gpy():
os.system(f'pip uninstall gpy')
messagebox.showinfo(uninstall ,ok)
def pydy():
os.system(f'pip uninstall pydy')
messagebox.showinfo(uninstall ,ok)
def fh():
root.destroy()
# Button
bt_fh = Button(frame, text='返回', command=fh)
bt_n = Button(frame, text='Numpy删除', command=Numpy)
bt_scipy = Button(frame, text='scipy删除', command=scipy)
bt_sympy = Button(frame, text='sympy删除', command=sympy)
bt_pandas = Button(frame, text='pandas删除', command=pandas)
bt_pyomo = Button(frame ,text='pyomo删除', command=pyomo)
bt_gpy = Button(frame , text='gpy删除', command=gpy)
bt_pydy = Button(frame ,text='pydy删除', command=pydy)
# pack and Label
Label(root, text='计算类删除')
bt_fh.pack()
bt_n.pack()
bt_scipy.pack()
bt_sympy.pack()
bt_pandas.pack()
bt_pyomo.pack()
bt_gpy.pack()
bt_pydy.pack()
# mainloop
root.title('删除')
root.geometry('200x200+400+100')
root.mainloop()

83
maths_install.pyw Normal file
View File

@@ -0,0 +1,83 @@
from tkinter import *
from tkinter import messagebox
import os
root = Tk()
ml = os.getcwd()
file_error = '文件丢失,请重新安装'
install = 'pip install'
ok = '安装成功!'
i = '-i https://mirrors.aliyun.com/pypi/simple/'
# 创建滚动区域的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
def Numpy():
os.system('pip install numpy -i https://mirrors.aliyun.com/pypi/simple/')
messagebox.showinfo(install, ok)
def scipy():
os.system(f'pip install scipy {i}')
messagebox.showinfo(install, ok)
def sympy():
os.system(f'pip install sympy {i}')
messagebox.showinfo(install, ok)
def pandas():
os.system(f'pip install pandas {i}')
messagebox.showinfo(install, ok)
def pyomo():
os.system(f'pip install pyomo {i}')
messagebox.showinfo(install ,ok)
def gpy():
os.system(f'pip install gpy {i}')
messagebox.showinfo(install ,ok)
def pydy():
os.system(f'pip install pydy {i}')
messagebox.showinfo(install ,ok)
def fh():
root.destroy()
# Button
bt_fh = Button(frame, text='返回', command=fh)
bt_n = Button(frame, text='Numpy安装', command=Numpy)
bt_scipy = Button(frame, text='scipy安装', command=scipy)
bt_sympy = Button(frame, text='sympy安装', command=sympy)
bt_pandas = Button(frame, text='pandas安装', command=pandas)
bt_pyomo = Button(frame , text='pyomo安装', command=pyomo)
bt_gpy = Button(frame ,text='gpy安装', command=gpy)
bt_pydy = Button(frame , text='pydy安装', command=pydy)
# pack and Label
Label(root, text='计算类安装')
bt_fh.pack()
bt_n.pack()
bt_scipy.pack()
bt_sympy.pack()
bt_pandas.pack()
bt_pyomo.pack()
bt_gpy.pack()
bt_pydy.pack()
# mainloop
root.title('install')
root.geometry('200x200+10+100')
root.mainloop()

1
not_have Normal file
View File

@@ -0,0 +1 @@
SciPy Pandas SymPy

116
python_jc.py Normal file
View File

@@ -0,0 +1,116 @@
import sys
import os
import urllib.request
import webbrowser
from time import sleep, strftime
import subprocess
ml = os.getcwd()
file_error = '文件丢失,请重新安装!!'
ERROR_MSG = '错误:'
def open_exe(exe_name):
if os.path.exists(os.path.join(ml, f"{exe_name}.exe")):
subprocess.Popen(f"{exe_name}.exe", shell=True)
else:
print(file_error)
sleep(1)
def check_internet(url='http://www.baidu.com/', timeout=5):
try:
urllib.request.urlopen(url, timeout=timeout)
open_exe('client')
return True
except Exception as e:
print(f'{ERROR_MSG}{strftime("%Y-%m-%d %H:%M:%S")}: WIFI连接不正常请检测wifi连接后再试吧')
sleep(5)
print('是否继续启动程序(Y.是N.不是)?')
input_xz = str(input('>>>'))
if input_xz != None:
if input_xz.lower() == 'y':
open_exe('client')
elif input_xz.lower() == 'n':
sys.exit()
else:
print('请输入英文字母!!')
sleep(1.5)
else:
print('错误:没有输入文字')
sleep(1.5)
return False
'''def check_python_installation():
if sys.version_info.major < 3:
python_path = None
# 检查是否有 Python 安装目录
for path in os.environ['PATH'].split(os.pathsep):
python_exe = os.path.join(path, 'python.exe')
if os.path.isfile(python_exe):
python_path = os.path.dirname(python_exe)
break
if python_path:
print(f'{ERROR_MSG}{strftime("%Y-%m-%d %H:%M:%S")}: Python已安装但版本太低请安装 Python 3.x 版本')
webbrowser.open('https://python.org/downloads/')
else:
print(f'{ERROR_MSG}{strftime("%Y-%m-%d %H:%M:%S")}: Python未安装请安装 Python 3.x 版本')
webbrowser.open('https://python.org/downloads/')
print('是否继续启动程序(Y.是N.不是)?')
input_xz = str(input('>>>'))
if input_xz != None:
if input_xz.lower() == 'y':
open_exe('client')
elif input_xz.lower() == 'n':
sys.exit()
else:
print('请输入英文字母!!')
sleep(1.5)
else:
print('错误:没有输入文字,默认退出!')
sleep(1.5)
sys.exit()
else:
python_path = None
for path in os.environ['PATH'].split(os.pathsep):
python_exe = os.path.join(path, 'python.exe')
if os.path.isfile(python_exe):
python_path = os.path.dirname(python_exe)
break
if python_path:
print('自检正常!')
open_exe('client')
else:
print(f'{ERROR_MSG}{strftime("%Y-%m-%d %H:%M:%S")}: Python未安装请安装 Python 3.x 版本')
webbrowser.open('https://python.org/downloads/')
print('是否继续启动程序(Y.是N.不是)?')
input_xz = str(input('>>>'))
if input_xz != None:
if input_xz.lower() == 'y':
open_exe('client')
elif input_xz.lower() == 'n':
sys.exit()
else:
print('请输入英文字母!!')
sleep(1.5)
else:
print('错误:没有输入文字,默认退出!')
sleep(1.5)
sys.exit()'''
if __name__ == "__main__":
check_internet()
os.system("taskkill -f -im python_jc.exe")
sys.exit()

1
setup_readme.txt Normal file
View File

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

View File

@@ -1,30 +0,0 @@
from tkinter import *
from tkinter import messagebox
update = Tk()
url_update = 'https://github.com/dengrb1/pygk'
la_1 = Label(update, text='更新日志').pack()
la_2 = Label(update, text='''1.0 程序制作完成
1.2 程序新增pyqt5、pygame、pyinstaller安装
1.3 程序加入更新界面,里面只显示更新的内容,不会自动更新!
1.4 新增Requests库安装和删除
1.5 新增wxpython库安装和删除
1.6 加入关于模块
1.7 新增一个小彩蛋
1.8 新增nuitka安装和删除
1.9 新增django库安装和删除''').pack()
# 定义按钮
def quit_update():
update.destroy()
pass
# 按钮设置
quit_window_bt = Button(update, text='返回', command=quit_update)
# 初始化程序
update.title('更新日志')
update.geometry('250x250+50+50')
update.mainloop()

65
update.pyw Normal file
View File

@@ -0,0 +1,65 @@
"""基本上,这个文件都是已经提前写好了下一个版本的内容的
之后几天基本上都会发布最新版本的内容的"""
from tkinter import *
from tkinter.scrolledtext import ScrolledText
import webbrowser
from tkinter import messagebox
import subprocess
import os
root = Tk()
ml = os.getcwd()
def quit_exe():
root.destroy()
def update_now():
'''
if os.path.exists(os.path.join(ml, "downloads_update_now.exe")):
subprocess.Popen("downloads_update_now.exe", shell=True)
else:
messagebox.showerror('error','错误:文件不存在')
'''
webbrowser.open('https://kgithub.com/dengrb1/pip-helper')
def update_pip():
os.system('pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade pip')
messagebox.showinfo('pip helper', '更新pip包管理器成功!')
# Label
update_now_bt = Button(root ,text='在线更新', command=update_now).pack(side=RIGHT)
quit_bt = Button(root, text='返回', command=quit_exe).pack(side=RIGHT)
pip_bt = Button(root, text='pip包更新', command=update_pip).pack(side=RIGHT)
Label(root, text='更新日志').pack()
text = '''当前版本:1.7 (Not beta or demo)
1.7 加入pygithub库加入更多的机器学习库,修复一些BUG
1.6 加入更多处理数据库修复一些BUG加入WIFI检测修改更新日志文本放置的位置加入更新pip包管理工具......
1.5.1 修改pip源让下载速度变得更加快速
1.5 加入更多机器学习库修复一些BUG;修改pip安装检测代
1.4 加入pip安装检测加入更多web类库修复一些BUG
1.3 加入更多GUI库比如pyside6, kivy等等修复一些BUG
1.2.1 加入机器学习库——openai修复BUG;一键安装所有库正在试验中......
1.2 加入更多可视化库都在gui安装和删除类里面修复一些BUG
1.1 加入机器学习库安装修复BUG删除“关于”模块
1.0 正式版本。修复BUG改正更新日志显示问题
0.1.0 暂无日志
'''
text_box = ScrolledText(root)
text_box.pack(fill=BOTH, expand=1)
text_box.insert(END, text)
text_box.configure(state='disabled')
# mainloop
root.title('更新日志')
root.geometry('400x300+400+400')
root.mainloop()

82
web_delete.pyw Normal file
View File

@@ -0,0 +1,82 @@
from tkinter import *
from tkinter import messagebox
import os
# 定义内容和创建主窗口
root = Tk()
ml = os.getcwd()
ok2 = '删除成功'
uninstall = 'pip uninstall'
file_error = '文件丢失,请重新安装'
# 创建滚动区域的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
def Requests():
os.system('pip uninstall Requests')
messagebox.showinfo('pip uninstall', ok2)
pass
def django():
os.system('pip uninstall django')
messagebox.showinfo(uninstall, ok2)
pass
def fastAPI():
os.system('pip uninstall fastapi')
messagebox.showinfo(uninstall, ok2)
def sanic():
os.system('pip uninstall sanic')
messagebox.showinfo(uninstall, ok2)
def nameko():
os.system('pip uninstall nameko')
messagebox.showinfo(uninstall, ok2)
def pydantic():
os.system('pip uninstall pydantic')
messagebox.showinfo(uninstall, ok2)
def fh():
root.destroy()
pass
# Button
bt_fh = Button(frame, text='pydantic删除', command=fh)
bt_r = Button(frame, text='requests删除', command=Requests)
bt_d = Button(frame, text='django删除', command=django)
bt_fastapi = Button(frame, text='fastAPI删除', command=fastAPI)
bt_sanic = Button(frame, text='sanic删除', command=sanic)
bt_nameko = Button(frame, text='namekos删除', command=nameko)
bt_pydantic = Button(frame, text='pydantic删除', command=pydantic)
bt_fh = Button(frame, text='pydantic删除', command=fh)
# pack and Label
Label(root, text='web类删除').pack()
bt_fh.pack()
bt_d.pack()
bt_r.pack()
bt_fastapi.pack()
bt_sanic.pack()
bt_nameko.pack()
bt_pydantic.pack()
# mainloop
root.title('web')
root.geometry('200x230+100+30')
root.mainloop()

84
web_install.pyw Normal file
View File

@@ -0,0 +1,84 @@
from tkinter import *
from tkinter import messagebox
import os
import subprocess
# 定义内容和创建主窗口
root = Tk()
ml = os.getcwd()
ok = '安装成功'
install = 'pip install'
file_error = '文件丢失,请重新安装'
# 创建滚动区域的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
def Requests():
os.system('pip install Requests -i https://mirrors.aliyun.com/pypi/simple/')
messagebox.showinfo('pip install', ok)
pass
def django():
os.system('pip install django -i https://mirrors.aliyun.com/pypi/simple/')
messagebox.showinfo(install, ok)
pass
def fastAPI():
os.system('pip install fastapi -i https://mirrors.aliyun.com/pypi/simple/')
messagebox.showinfo(install, ok)
def sanic():
os.system('pip install sanic -i https://mirrors.aliyun.com/pypi/simple/')
messagebox.showinfo(install, ok)
def nameko():
os.system('pip install nameko -i https://mirrors.aliyun.com/pypi/simple/')
messagebox.showinfo(install, ok)
def pydantic():
os.system('pip install pydantic -i https://mirrors.aliyun.com/pypi/simple/')
messagebox.showinfo(install, ok)
def fh():
root.destroy()
# Button
bt_fh = Button(frame, text='返回', command=fh)
bt_d = Button(frame, text='django安装', command=django)
bt_r = Button(frame, text='Requests安装', command=Requests)
bt_fastapi = Button(frame, text='fastAPI删除', command=fastAPI)
bt_sanic = Button(frame, text='sanic删除', command=sanic)
bt_nameko = Button(frame, text='namekos删除', command=nameko)
bt_pydantic = Button(frame, text='pydantic删除', command=pydantic)
# pack
Label(root, text='web类安装').pack()
bt_fh.pack()
bt_d.pack()
bt_r.pack()
bt_d.pack()
bt_r.pack()
bt_fastapi.pack()
bt_sanic.pack()
bt_nameko.pack()
bt_pydantic.pack()
# mainloop
root.title('web')
root.geometry('200x250+600+400')
root.mainloop()

View File

@@ -8,29 +8,27 @@ root_1 = 'pip uninstall'
ok = '安装完成' ok = '安装完成'
ok2 = '删除完成' ok2 = '删除完成'
uninstall = 'pip uninstall' uninstall = 'pip uninstall'
ml = os.getcwd()
file_error = '文件丢失,请重新安装'
def open_exe(exe_name):
if os.path.exists(os.path.join(ml, f"{exe_name}.exe")):
os.system(f"start {exe_name}.exe")
else:
messagebox.showerror('install', file_error)
pass
pass
def GUI_delete():
open_exe('GUI_delete')
pass
def web_delete():
open_exe('web_delete')
pass
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)
pass pass
def pygame_remove():
os.system('pip uninstall pygame')
messagebox.showinfo('pip uninstall', ok2)
pass
def wxpython_remove():
os.system('pip uninstall wxpython')
messagebox.showinfo('pip uninstall', ok2)
pass
def Requests_remove():
os.system('pip uninstall Requests')
messagebox.showinfo('pip uninstall', ok2)
pass
def pyqt_remove():
os.system('pip uninstall pyqt5')
os.systen('pip uninstall PyQtWebEngine')
messagebox.showinfo('pip uninstall', ok2)
pass
def tqdm_remove(): def tqdm_remove():
os.system('pip uninstall tqdm') os.system('pip uninstall tqdm')
messagebox.showinfo('pip uninstall', ok2) messagebox.showinfo('pip uninstall', ok2)
@@ -43,25 +41,21 @@ def pywin32_remove():
os.system('pip uninstall pywin32') os.system('pip uninstall pywin32')
messagebox.showinfo(uninstall, ok2) messagebox.showinfo(uninstall, ok2)
pass pass
def django_remove():
os.system('pip uninstall django')
messagebox.showinfo(uninstall, ok2)
pass
def numpy_remove(): def numpy_remove():
os.system('pip uninstall numpy') os.system('pip uninstall numpy')
messagebox.showinfo(uninstall, ok2) messagebox.showinfo(uninstall, ok2)
pass pass
def fh():
root.destroy()
# 按钮 # 按钮
remove_pyqt = Button(root, text='pyqt删除', command=pyqt_remove).pack() remove_GUI = Button(root, text='GUI类删除', command=GUI_delete).pack()
remove_pygame = Button(root, text='pygame删除',command=pygame_remove).pack() remove_web = Button(root, text='web类删除', command=web_delete).pack()
remove_wxpython = Button(root, text='wxpython删除', command=wxpython_remove).pack() remove_pyinstaller = Button(root, text='pyinstaller删除', command=pyinstaller_remove).pack()
remove_Requests = Button(root, text='Requests删除', command=Requests_remove).pack()
remove_pyinstaller = Button(root, text='pyinstaller安装', command=pyinstaller_remove).pack()
remove_tqdm = Button(root, text='tqdm删除', command=tqdm_remove).pack() remove_tqdm = Button(root, text='tqdm删除', command=tqdm_remove).pack()
remove_nuitka = Button(root, text='nuitka删除', command=nuitka_remove).pack() remove_nuitka = Button(root, text='nuitka删除', command=nuitka_remove).pack()
remove_pywin32 = Button(root, text='pywin32删除', command=pywin32_remove).pack() remove_pywin32 = Button(root, text='pywin32删除', command=pywin32_remove).pack()
remove_django = Button(root, text='django删除', command=django_remove) remove_numpy = Button(root ,text="numpy删除", command=numpy_remove).pack()
remove_numpy = Button(root ,text="numpy删除", command=numpy_remove) remove_fh = Button(root, text='返回', command=fh).pack()
# 初始化程序 # 初始化程序

View File

@@ -6,29 +6,26 @@ import os
root = Tk() root = Tk()
ok = '安装完成' ok = '安装完成'
install_1 = 'pip install' install_1 = 'pip install'
ml = os.getcwd()
file_error = '文件丢失,请重新安装'
def open_exe(exe_name):
if os.path.exists(os.path.join(ml, f"{exe_name}.exe")):
os.system(f"start {exe_name}.exe")
else:
messagebox.showerror('install', file_error)
pass
pass
def gui_install():
open_exe('GUI_install')
def web_install():
open_exe('web_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)
pass pass
def pygame():
os.system('pip install pygame')
messagebox.showinfo('pip install', ok)
pass
def pyqt():
os.system('pip install pyqt5')
os.system('pip install PyQtWebEngine')
messagebox.showinfo('pip install', ok)
pass
def Requests():
os.system('pip install Requests')
messagebox.showinfo('pip install', ok)
pass
def wxpython():
os.system('pip install wxpython')
messagebox.showinfo('pip install', ok)
pass
def nuitka(): def nuitka():
os.system('pip install nuitka') os.system('pip install nuitka')
messagebox.showinfo('pip install', ok) messagebox.showinfo('pip install', ok)
@@ -41,25 +38,21 @@ def tqdm():
os.system('pip install tqdm') os.system('pip install tqdm')
messagebox.showinfo(install_1, ok) messagebox.showinfo(install_1, ok)
pass pass
def django():
os.system('pip install django')
messagebox.showinfo(install_1, ok)
pass
def numpy(): def numpy():
os.system('pip install numpy') os.system('pip install numpy')
messagebox.showinfo(install_1, ok) messagebox.showinfo(install_1, ok)
pass pass
def fh():
root.destroy()
# 按钮 # 按钮
pip_gui = Button(root, text='GUI类安装', command=gui_install).pack()
pip_web = Button(root, text='web类安装', command=web_install).pack()
pip_pyinstaller = Button(root, text='pyinstall安装', command=pyinstaller).pack() pip_pyinstaller = Button(root, text='pyinstall安装', command=pyinstaller).pack()
pip_pygame = Button(root, text='pygame安装', command=pygame).pack()
pip_pyqt = Button(root, text='pyqt5安装', command=pyqt).pack()
pip_Requests = Button(root, text='Requests安装', command=Requests).pack()
pip_wxpython = Button(root, text='wxpython安装', command=wxpython).pack()
pip_tqdm = Button(root, text='tqdm安装', command=tqdm).pack() pip_tqdm = Button(root, text='tqdm安装', command=tqdm).pack()
pip_nuitka = Button(root, text='nuitka安装', command=nuitka).pack() pip_nuitka = Button(root, text='nuitka安装', command=nuitka).pack()
pip_pywin32 = Button(root, text='pywin32安装', command=pywin32).pack() pip_pywin32 = Button(root, text='pywin32安装', command=pywin32).pack()
pip_django = Button(root, text="django安装", command=django) pip_numpy = Button(root, text='numpy安装', command=numpy).pack()
pip_numpy = Button(root, text='numpy安装', command=numpy) pip_fh = Button(root,text='返回', command=fh).pack()
# 初始化程序 # 初始化程序

14
没有使用/taskkill.pyw Normal file
View File

@@ -0,0 +1,14 @@
import os
import platform
from time import time
import sys
t = 'taskkill -f -t -im '
def Linux():
system = platform.system()
if system == 'Linux':
pass
elif system == 'Windows':
os.system(t + 'client.exe')
os.system()

View File

@@ -0,0 +1,46 @@
from tkinter import *
from tkinter import messagebox
import os
root = Tk()
ml = os.getcwd()
file_error = '文件丢失,请重新安装'
ok2 = '删除完成'
uninstall = 'pip uninstall'
def open_exe(exe_name):
if os.path.exists(os.path.join(ml, f"{exe_name}.exe")):
os.system(f"start {exe_name}.exe")
else:
messagebox.showerror('delete', file_error)
pass
def Requests_remove():
os.system('pip uninstall Requests')
messagebox.showinfo('pip uninstall', ok2)
pass
def django_remove():
os.system('pip uninstall django')
messagebox.showinfo(uninstall, ok2)
pass
def fh():
root.destroy()
pass
# Button
bt_r = Button(root, text='Requests删除', command=Requests_remove)
bt_d = Button(root, text='django删除', command=django_remove)
bt_fh = Button(root, text='返回', command=fh)
#pack and Label
Label(root, text='web类删除').pack()
bt_d.pack()
bt_r.pack()
bt_fh.pack()
# mainloop
root.title('web')
root.geometry('150x150+400+800')
root.mainloop()

View File

@@ -0,0 +1,48 @@
from tkinter import *
from tkinter import messagebox
import os
root = Tk()
ml = os.getcwd()
ok = '安装完成!'
file_error = '文件丢失,请重新安装'
install_1 = 'pip install'
def Requests():
os.system('pip install Requests')
messagebox.showinfo('pip install', ok)
pass
def django():
os.system('pip install django')
messagebox.showinfo(install_1, ok)
pass
def open_exe(exe_name):
if os.path.exists(os.path.join(ml, f"{exe_name}.exe")):
os.system(f"start {exe_name}.exe")
else:
messagebox.showerror('install', file_error)
pass
pass
def fh():
root.destroy()
# button
bt_d = Button(root, text='django安装', command=django)
bt_r = Button(root, text='Requests安装', command=Requests)
bt_fh = Button(root, text='返回', command=fh)
# pack and Label
Label(root, text='web类安装').pack()
bt_d.pack()
bt_r.pack()
bt_fh.pack()
# mainloop
root.title('web')
root.geometry('150x150')
root.mainloop()

View File

@@ -4,7 +4,7 @@ import webbrowser
gk_window = Tk() gk_window = Tk()
url = 'https://github.com/dengrb1/pygk' url = 'https://kgithub.com/dengrb1/pip-helper/releases'
la_1 = Label(gk_window, text='关于').pack() la_1 = Label(gk_window, text='关于').pack()