10 Commits
v1.3 ... v1.5

Author SHA1 Message Date
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
10 changed files with 308 additions and 143 deletions

View File

@@ -10,6 +10,24 @@ uninstall = 'pip uninstall'
ok = '删除完成' 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")
# 显示Canvas和Scrollbar
canvas.pack(side="left", fill="both", expand=True)
# def # def
def TensorFlow(): def TensorFlow():
os.system('pip uninstall TensorFlow') os.system('pip uninstall TensorFlow')
@@ -20,19 +38,42 @@ def pytorch():
def openai(): def openai():
os.system('pip uninstall openai') os.system('pip uninstall openai')
messagebox.showinfo(uninstall, ok) 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 fh(): def fh():
root.destroy() root.destroy()
# Button # Button
bt_TensorFlow = Button(root, text='TensorFlow删除', command=TensorFlow) bt_TensorFlow = Button(frame, text='TensorFlow删除', command=TensorFlow)
bt_pytorch = Button(root, text='pytorch删除', command=pytorch) bt_pytorch = Button(frame, text='pytorch删除', command=pytorch)
bt_openai = Button(root, text='openai删除', command=openai) bt_keras = Button(frame, text='keras安装', command=keras)
bt_fh = Button(root, text='返回', command=fh) 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_openai = Button(frame, text='openai删除', command=openai)
bt_fh = Button(frame, 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_keras.pack()
bt_lightGBM.pack()
bt_XGBoost.pack()
bt_scikit_learn.pack()
bt_openai.pack() bt_openai.pack()
bt_fh.pack() bt_fh.pack()

View File

@@ -9,6 +9,22 @@ file_error = '文件丢失,请重新安装'
ok = '安装完成' ok = '安装完成'
install = 'pip install' install = 'pip 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 # def
def tensorFlow(): def tensorFlow():
@@ -20,19 +36,37 @@ def pytorch():
def openai(): def openai():
os.system('pip install openai') os.system('pip install openai')
messagebox.showinfo(install, ok) messagebox.showinfo(install, ok)
def keras():
os.system('pip install keras')
messagebox.showinfo(install, ok)
def scikit_learn():
os.system('pip install scikit-learn')
messagebox.showinfo(install, ok)
def lightGBM():
os.system('pip install lightGBM')
messagebox.showinfo(install, ok)
def CatBoost():
os.system('pip install CatBoost')
messagebox.shir
def fh(): def fh():
root.destroy() root.destroy()
# Button # Button
bt_tensorFlow = Button(root, text='TensorFlow安装', command=tensorFlow) bt_tensorFlow = Button(frame, text='TensorFlow安装', command=tensorFlow)
bt_pytorch = Button(root, text='pytorch安装', command=pytorch) bt_pytorch = Button(frame, text='pytorch安装', command=pytorch)
bt_openai = Button(root, text='openai安装', command=openai) bt_keras = Button(frame, text='keras安装', command=keras)
bt_fh = Button(root, text='返回', command=fh) bt_lightGBM = Button(frame, text='lightGBM安装', command=lightGBM)
bt_scikit_learn = Button(frame, text='scikit-learn安装', command=scikit_learn)
bt_openai = Button(frame, text='openai安装', command=openai)
bt_fh = Button(frame, 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_keras.pack()
bt_lightGBM.pack()
bt_scikit_learn.pack()
bt_openai.pack() bt_openai.pack()
bt_fh.pack() bt_fh.pack()

27
python_jc.py Normal file
View File

@@ -0,0 +1,27 @@
import sys
import os
from time import sleep
ml = os.getcwd()
file_error = '文件丢失,请重新安装!!'
# def
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:
print(file_error)
sleep(1)
pass
# try
try:
import pip
open_exe('client')
except ImportError:
print("请安装Pip或者python")
sleep(2)
sys.exit()

View File

@@ -24,8 +24,10 @@ text = '''0.1.0 暂无日志
1.2 加入更多可视化库都在gui安装和删除类里面修复一些BUG 1.2 加入更多可视化库都在gui安装和删除类里面修复一些BUG
1.2.1 加入机器学习库——openai修复BUG;一键安装所有库正在试验中...... 1.2.1 加入机器学习库——openai修复BUG;一键安装所有库正在试验中......
1.3 加入更多GUI库比如pyside6, kivy等等修复一些BUG 1.3 加入更多GUI库比如pyside6, kivy等等修复一些BUG
1.4 加入pip安装检测加入更多web类库修复一些BUG
1.5 加入更多机器学习库修复一些BUG;修改pip安装检测代
当前版本:1.3 (Not beta or demo)''' 当前版本:1.5 (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)

View File

@@ -2,45 +2,85 @@ from tkinter import *
from tkinter import messagebox from tkinter import messagebox
import os import os
# 定义内容和创建主窗口
root = Tk() root = Tk()
ml = os.getcwd() ml = os.getcwd()
file_error = '文件丢失,请重新安装' ok2 = '安装成功'
ok2 = '删除完成'
uninstall = 'pip uninstall' 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 open_exe(exe_name): def open_exe(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") os.system(f"start {exe_name}.exe")
else: else:
messagebox.showerror('delete', file_error) messagebox.showerror('delete', file_error)
pass pass
def Requests_remove(): def Requests():
os.system('pip uninstall Requests') os.system('pip uninstall Requests')
messagebox.showinfo('pip uninstall', ok2) messagebox.showinfo('pip uninstall', ok2)
pass pass
def django_remove(): def django():
os.system('pip uninstall django') os.system('pip uninstall django')
messagebox.showinfo(uninstall, ok2) messagebox.showinfo(uninstall, ok2)
pass 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(): def fh():
root.destroy() root.destroy()
pass pass
# Button # Button
bt_r = Button(root, text='Requests删除', command=Requests_remove) bt_r = Button(frame, text='requests删除', command=Requests)
bt_d = Button(root, text='django删除', command=django_remove) bt_d = Button(frame, text='django删除', command=django)
bt_fh = Button(root, text='返回', command=fh) 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 # pack and Label
Label(root, text='web类删除').pack() Label(root, text='web类删除').pack()
bt_d.pack() bt_d.pack()
bt_r.pack() bt_r.pack()
bt_fastapi.pack()
bt_sanic.pack()
bt_nameko.pack()
bt_pydantic.pack()
bt_fh.pack() bt_fh.pack()
# mainloop # mainloop
root.title('web') root.title('web')
root.geometry('150x150+400+800') root.geometry('200x230+100+30')
root.mainloop() root.mainloop()

View File

@@ -2,21 +2,39 @@ from tkinter import *
from tkinter import messagebox from tkinter import messagebox
import os import os
# 定义内容和创建主窗口
root = Tk() root = Tk()
ml = os.getcwd() ml = os.getcwd()
ok = '安装完成!' ok = '安装成功'
install = 'pip install'
file_error = '文件丢失,请重新安装' file_error = '文件丢失,请重新安装'
install_1 = 'pip 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
def Requests(): def Requests():
os.system('pip install Requests') os.system('pip install Requests')
messagebox.showinfo('pip install', ok) messagebox.showinfo('pip install', ok)
pass pass
def django(): def django():
os.system('pip install django') os.system('pip install django')
messagebox.showinfo(install_1, ok) messagebox.showinfo(install, ok)
pass pass
def open_exe(exe_name): def open_exe(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")):
@@ -25,24 +43,46 @@ def open_exe(exe_name):
messagebox.showerror('install', file_error) messagebox.showerror('install', file_error)
pass pass
pass pass
def fastAPI():
os.system('pip install fastapi')
messagebox.showinfo(install, ok)
def sanic():
os.system('pip install sanic')
messagebox.showinfo(install, ok)
def nameko():
os.system('pip install nameko')
messagebox.showinfo(install, ok)
def pydantic():
os.system('pip install pydantic')
messagebox.showinfo(install, ok)
def fh(): def fh():
root.destroy() root.destroy()
# button # Button
bt_d = Button(root, text='django安装', command=django) bt_d = Button(frame, text='django安装', command=django)
bt_r = Button(root, text='Requests安装', command=Requests) bt_r = Button(frame, text='Requests安装', command=Requests)
bt_fh = Button(root, text='返回', command=fh) 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='返回', command=fh)
# pack
# pack and Label
Label(root, text='web类安装').pack() Label(root, text='web类安装').pack()
bt_d.pack() bt_d.pack()
bt_r.pack() bt_r.pack()
bt_d.pack()
bt_r.pack()
bt_fastapi.pack()
bt_sanic.pack()
bt_nameko.pack()
bt_pydantic.pack()
bt_fh.pack()
bt_fh.pack() bt_fh.pack()
# mainloop # mainloop
root.title('web') root.title('web')
root.geometry('150x150') root.geometry('200x250+600+400')
root.mainloop() root.mainloop()

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

@@ -1,48 +0,0 @@
from tkinter import *
from tkinter import messagebox
import os
# 定义内容和创建主窗口
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 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

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

@@ -1,65 +0,0 @@
from tkinter import *
from tkinter import messagebox
import os
# 定义内容和创建主窗口
root = Tk()
ml = os.getcwd()
ok = '安装成功'
install_1 = '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')
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(frame, text='django安装', command=django)
bt_r = Button(frame, text='Requests安装', command=Requests)
bt_fh = Button(frame, text='返回', command=fh)
# pack
Label(root, text='web类安装').pack()
bt_d.pack()
bt_r.pack()
bt_fh.pack()
# mainloop
root.title('web')
root.geometry('200x250+600+400')
root.mainloop()