Compare commits
No commits in common. "main" and "v1.6" have entirely different histories.
@ -36,6 +36,10 @@ def wxpython():
|
||||
os.system('pip uninstall wxpython')
|
||||
messagebox.showinfo('pip uninstall', ok2)
|
||||
pass
|
||||
def pygame():
|
||||
os.system('pip uninstall pygame')
|
||||
messagebox.showinfo('pip uninstall', ok2)
|
||||
pass
|
||||
def Matplotlib():
|
||||
os.system('pip uninstall Matplotlib')
|
||||
messagebox.showinfo(uninstall, ok2)
|
||||
@ -58,8 +62,8 @@ def fh():
|
||||
root.destroy()
|
||||
|
||||
# button
|
||||
bt_fh = Button(frame, text='返回', command=fh)
|
||||
bt_qt = Button(root, text='pyqt5删除', command=pyqt)
|
||||
bt_pygame = Button(root, text='pygame删除', command=pygame)
|
||||
bt_wx = Button(frame, text='wxpython删除', command=wxpython)
|
||||
bt_kivy = Button(frame, text='kivy删除', command=kivy)
|
||||
bt_pyside = Button(frame, text='pyside6删除', command=pyside6)
|
||||
@ -67,20 +71,20 @@ 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
|
||||
Label(root, text='GUI删除').pack()
|
||||
bt_fh.pack()
|
||||
bt_qt.pack()
|
||||
bt_pyside.pack()
|
||||
bt_kivy.pack()
|
||||
bt_pygame.pack()
|
||||
bt_matplotlib.pack()
|
||||
bt_seaborn.pack()
|
||||
bt_flexx.pack()
|
||||
bt_pysimpleGUI.pack()
|
||||
bt_wx.pack()
|
||||
|
||||
bt_fh.pack()
|
||||
|
||||
|
||||
# mainloop
|
||||
|
@ -33,6 +33,9 @@ def pyqt5():
|
||||
def wxpython():
|
||||
os.system("pip install wxpython -i https://mirrors.aliyun.com/pypi/simple/")
|
||||
messagebox.showinfo(install, ok)
|
||||
def pygame():
|
||||
os.system("pip install pygame -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)
|
||||
@ -51,13 +54,13 @@ 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/')
|
||||
os.system('pip install flexx -i https://mirrors.aliyun.com/pypi/simple/d')
|
||||
messagebox.showinfo(install, ok)
|
||||
|
||||
|
||||
# Button
|
||||
bt_fh = Button(frame, text='返回', command=fh)
|
||||
bt_qt = Button(frame, text='pyqt5安装', command=pyqt5)
|
||||
bt_pygame = Button(frame, text='pygame安装', command=pygame)
|
||||
bt_matplotlib = Button(frame, text='matplotlib安装', command=Matplotlib)
|
||||
bt_seaborn = Button(frame, text='Seaborn安装', command=Seaborn)
|
||||
bt_kivy = Button(frame, text='kivy安装', command=kivy)
|
||||
@ -65,20 +68,20 @@ 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
|
||||
Label(root, text="GUI").pack()
|
||||
bt_fh.pack()
|
||||
bt_qt.pack()
|
||||
bt_pyside.pack()
|
||||
bt_kivy.pack()
|
||||
bt_pygame.pack()
|
||||
bt_matplotlib.pack()
|
||||
bt_seaborn.pack()
|
||||
bt_flexx.pack()
|
||||
bt_pysimpleGUI.pack()
|
||||
bt_wx.pack()
|
||||
|
||||
bt_fh.pack()
|
||||
|
||||
|
||||
# mainloop
|
||||
|
@ -24,4 +24,4 @@
|
||||
# 作者
|
||||
邮箱:drb12311@163.com
|
||||
|
||||
## **_之后的就没有了......_**
|
||||
# **_之后的就没有了......_**
|
24
client.pyw
24
client.pyw
@ -1,36 +1,36 @@
|
||||
from tkinter import *
|
||||
from tkinter import messagebox
|
||||
import sys
|
||||
import subprocess
|
||||
from subprocess import call
|
||||
import os
|
||||
|
||||
|
||||
root = Tk()
|
||||
ml = os.getcwd()
|
||||
file_error = '文件丢失,请重新安装'
|
||||
|
||||
|
||||
def jc(exe_name):
|
||||
if os.path.exists(os.path.join(ml, f"{exe_name}.exe")):
|
||||
subprocess.Popen(f"{exe_name}.exe", shell=True)
|
||||
if os.path.exists(os.path.join(ml,f"{exe_name}.exe")):
|
||||
os.system(f"start {exe_name}.exe")
|
||||
else:
|
||||
messagebox.showerror('system', file_error)
|
||||
|
||||
|
||||
messagebox.showerror('system',file_error)
|
||||
pass
|
||||
def update_pip():
|
||||
os.system('pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade pip')
|
||||
messagebox.showinfo('pip helper','更新pip包管理器成功!')
|
||||
def install():
|
||||
jc("install")
|
||||
|
||||
|
||||
def delete():
|
||||
jc("delete")
|
||||
|
||||
|
||||
def update():
|
||||
jc("update")
|
||||
|
||||
|
||||
def exit_exe():
|
||||
root.destroy()
|
||||
|
||||
pass
|
||||
|
||||
def eyeryone():
|
||||
messagebox.showerror('pip helper', '暂时无法使用,因为程序测试途中出现未知问题......')
|
||||
@ -40,10 +40,12 @@ def eyeryone():
|
||||
Label(root, text='pip_helper').pack()
|
||||
Button(root, text='安装模式', command=install).pack()
|
||||
Button(root, text='删除模式', command=delete).pack()
|
||||
Button(root, text='更新pip包管理工具', command=update_pip).pack()
|
||||
Button(root, text='更新日志', command=update).pack()
|
||||
Button(root, text='退出', command=exit_exe).pack()
|
||||
|
||||
Label(root, text='version 1.7 @2023-2024 dengrb1').pack()
|
||||
Label(root, text='version 1.6 @2023-2024 dengrb1').pack()
|
||||
|
||||
|
||||
# mainloop
|
||||
root.title('选择')
|
||||
|
@ -8,7 +8,6 @@ ml = os.getcwd()
|
||||
file_error = '文件丢失,请重新安装'
|
||||
uninstall = 'pip uninstall'
|
||||
ok = '删除完成'
|
||||
u = '删除'
|
||||
|
||||
|
||||
# 创建滚动区域的Canvas对象
|
||||
@ -54,15 +53,6 @@ def CatBoost():
|
||||
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()
|
||||
|
||||
@ -73,29 +63,22 @@ 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()
|
||||
|
||||
bt_fh.pack()
|
||||
|
||||
|
||||
# mainloop
|
||||
root.title('delete')
|
||||
root.geometry('200x220+400+650')
|
||||
root.geometry('150x150+400+650')
|
||||
root.mainloop()
|
@ -8,8 +8,6 @@ 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))
|
||||
@ -49,50 +47,28 @@ def lightGBM():
|
||||
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)
|
||||
messagebox.shir
|
||||
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()
|
||||
|
||||
bt_fh.pack()
|
||||
|
||||
|
||||
# mainloop
|
||||
|
@ -1,7 +1,6 @@
|
||||
from tkinter import *
|
||||
from tkinter import messagebox
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
# 创建主窗口
|
||||
root = Tk()
|
||||
@ -27,7 +26,7 @@ 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)
|
||||
os.system(f"start {exe_name}.exe")
|
||||
else:
|
||||
messagebox.showerror('install', file_error)
|
||||
pass
|
||||
@ -42,8 +41,6 @@ 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)
|
||||
|
@ -1,85 +0,0 @@
|
||||
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')
|
@ -1,88 +0,0 @@
|
||||
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()
|
||||
|
10
install.pyw
10
install.pyw
@ -1,7 +1,6 @@
|
||||
from tkinter import *
|
||||
from tkinter import messagebox
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
# 定义内容和创建主窗口
|
||||
root = Tk()
|
||||
@ -32,7 +31,7 @@ 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)
|
||||
os.system(f"start {exe_name}.exe")
|
||||
else:
|
||||
messagebox.showerror('install', file_error)
|
||||
pass
|
||||
@ -45,8 +44,6 @@ 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)
|
||||
@ -74,7 +71,6 @@ 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)
|
||||
@ -83,14 +79,12 @@ pip_pywin32 = Button(frame, text='pywin32安装', command=pywin32)
|
||||
pip_fh = Button(frame,text='返回', command=fh)
|
||||
|
||||
# pack and label
|
||||
Label(frame, text='安装列表').pack()
|
||||
Label(root, 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()
|
||||
|
@ -29,8 +29,14 @@ 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('pip helper', file_error)
|
||||
pass
|
||||
def Numpy():
|
||||
os.system(f'pip uninstall numpy')
|
||||
os.system('pip uninstall numpy')
|
||||
messagebox.showinfo(uninstall, ok)
|
||||
def scipy():
|
||||
os.system(f'pip uninstall scipy')
|
||||
@ -41,29 +47,16 @@ def sympy():
|
||||
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)
|
||||
|
||||
bt_fh = Button(frame, text='返回', command=fh)
|
||||
|
||||
# pack and Label
|
||||
Label(root, text='计算类删除')
|
||||
@ -72,9 +65,6 @@ bt_n.pack()
|
||||
bt_scipy.pack()
|
||||
bt_sympy.pack()
|
||||
bt_pandas.pack()
|
||||
bt_pyomo.pack()
|
||||
bt_gpy.pack()
|
||||
bt_pydy.pack()
|
||||
|
||||
|
||||
# mainloop
|
||||
|
@ -29,6 +29,12 @@ 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('pip helper', file_error)
|
||||
pass
|
||||
def Numpy():
|
||||
os.system('pip install numpy -i https://mirrors.aliyun.com/pypi/simple/')
|
||||
messagebox.showinfo(install, ok)
|
||||
@ -41,29 +47,16 @@ def sympy():
|
||||
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)
|
||||
|
||||
bt_fh = Button(frame, text='返回', command=fh)
|
||||
|
||||
# pack and Label
|
||||
Label(root, text='计算类安装')
|
||||
@ -72,9 +65,6 @@ bt_n.pack()
|
||||
bt_scipy.pack()
|
||||
bt_sympy.pack()
|
||||
bt_pandas.pack()
|
||||
bt_pyomo.pack()
|
||||
bt_gpy.pack()
|
||||
bt_pydy.pack()
|
||||
|
||||
|
||||
# mainloop
|
||||
|
14
python_jc.py
14
python_jc.py
@ -3,7 +3,6 @@ import os
|
||||
import urllib.request
|
||||
import webbrowser
|
||||
from time import sleep, strftime
|
||||
import subprocess
|
||||
|
||||
|
||||
ml = os.getcwd()
|
||||
@ -13,7 +12,7 @@ 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)
|
||||
os.system(f"start {exe_name}.exe")
|
||||
else:
|
||||
print(file_error)
|
||||
sleep(1)
|
||||
@ -43,12 +42,6 @@ def check_internet(url='http://www.baidu.com/', timeout=5):
|
||||
return False
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
'''def check_python_installation():
|
||||
if sys.version_info.major < 3:
|
||||
python_path = None
|
||||
@ -110,7 +103,6 @@ def check_internet(url='http://www.baidu.com/', timeout=5):
|
||||
sleep(1.5)
|
||||
sys.exit()'''
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
if __name__ == '__main__':
|
||||
check_internet()
|
||||
os.system("taskkill -f -im python_jc.exe")
|
||||
sys.exit()
|
||||
|
46
update.pyw
46
update.pyw
@ -5,7 +5,6 @@ from tkinter import *
|
||||
from tkinter.scrolledtext import ScrolledText
|
||||
import webbrowser
|
||||
from tkinter import messagebox
|
||||
import subprocess
|
||||
import os
|
||||
|
||||
root = Tk()
|
||||
@ -14,44 +13,29 @@ 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)
|
||||
'''if os.path.exists(os.path.join(ml, "downloads_update_now.exe")):
|
||||
os.startfile("downloads_update_now.exe")
|
||||
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包管理器成功!')
|
||||
messagebox.showerror('error','错误:文件不存在')'''
|
||||
messagebox.showerror('update', '在线更新模块正在更新,请以后再试吧')
|
||||
|
||||
# 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 暂无日志
|
||||
'''
|
||||
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包管理工具......
|
||||
1.7 加入pygithub库;“在线更新”模块改为正式版;修复一些BUG'''
|
||||
|
||||
text_box = ScrolledText(root)
|
||||
text_box.pack(fill=BOTH, expand=1)
|
||||
@ -61,5 +45,5 @@ text_box.configure(state='disabled')
|
||||
|
||||
# mainloop
|
||||
root.title('更新日志')
|
||||
root.geometry('400x300+400+400')
|
||||
root.geometry('355x250+400+400')
|
||||
root.mainloop()
|
||||
|
@ -29,6 +29,12 @@ 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():
|
||||
os.system('pip uninstall Requests')
|
||||
messagebox.showinfo('pip uninstall', ok2)
|
||||
@ -55,7 +61,6 @@ def fh():
|
||||
|
||||
|
||||
# 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)
|
||||
@ -66,14 +71,13 @@ 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()
|
||||
|
||||
bt_fh.pack()
|
||||
|
||||
|
||||
# mainloop
|
||||
|
@ -1,7 +1,6 @@
|
||||
from tkinter import *
|
||||
from tkinter import messagebox
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
# 定义内容和创建主窗口
|
||||
root = Tk()
|
||||
@ -37,7 +36,13 @@ def django():
|
||||
os.system('pip install django -i https://mirrors.aliyun.com/pypi/simple/')
|
||||
messagebox.showinfo(install, 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 fastAPI():
|
||||
os.system('pip install fastapi -i https://mirrors.aliyun.com/pypi/simple/')
|
||||
messagebox.showinfo(install, ok)
|
||||
@ -55,18 +60,16 @@ def fh():
|
||||
|
||||
|
||||
# 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)
|
||||
|
||||
bt_fh = Button(frame, text='返回', command=fh)
|
||||
|
||||
# pack
|
||||
Label(root, text='web类安装').pack()
|
||||
bt_fh.pack()
|
||||
bt_d.pack()
|
||||
bt_r.pack()
|
||||
bt_d.pack()
|
||||
@ -75,7 +78,7 @@ bt_fastapi.pack()
|
||||
bt_sanic.pack()
|
||||
bt_nameko.pack()
|
||||
bt_pydantic.pack()
|
||||
|
||||
bt_fh.pack()
|
||||
|
||||
|
||||
# mainloop
|
||||
|
@ -1,14 +0,0 @@
|
||||
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()
|
Loading…
x
Reference in New Issue
Block a user