Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8b4b1186bc | ||
|
|
7a76d4c7c8 | ||
|
|
9da156f37c | ||
|
|
0df6de9314 | ||
|
|
b1822867ed | ||
|
|
0e4aeb62d2 | ||
|
|
5313f6d06e | ||
|
|
97bd44f6bd |
@@ -64,7 +64,7 @@ def fh():
|
|||||||
# button
|
# button
|
||||||
bt_qt = Button(root, text='pyqt5删除', command=pyqt)
|
bt_qt = Button(root, text='pyqt5删除', command=pyqt)
|
||||||
bt_pygame = Button(root, text='pygame删除', command=pygame)
|
bt_pygame = Button(root, text='pygame删除', command=pygame)
|
||||||
bt_wxpython = Button(frame, text='wxpython删除', command=wxpython)
|
bt_wx = Button(frame, text='wxpython删除', command=wxpython)
|
||||||
bt_kivy = Button(frame, text='kivy删除', command=kivy)
|
bt_kivy = Button(frame, text='kivy删除', command=kivy)
|
||||||
bt_pyside = Button(frame, text='pyside6删除', command=pyside6)
|
bt_pyside = Button(frame, text='pyside6删除', command=pyside6)
|
||||||
bt_flexx = Button(frame, text='flexx删除', command=flexx)
|
bt_flexx = Button(frame, text='flexx删除', command=flexx)
|
||||||
@@ -83,7 +83,7 @@ bt_matplotlib.pack()
|
|||||||
bt_seaborn.pack()
|
bt_seaborn.pack()
|
||||||
bt_flexx.pack()
|
bt_flexx.pack()
|
||||||
bt_pysimpleGUI.pack()
|
bt_pysimpleGUI.pack()
|
||||||
bt_wxpython.pack()
|
bt_wx.pack()
|
||||||
bt_fh.pack()
|
bt_fh.pack()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -27,34 +27,34 @@ canvas.pack(side="left", fill="both", expand=True)
|
|||||||
|
|
||||||
|
|
||||||
def pyqt5():
|
def pyqt5():
|
||||||
os.system("pip install pyqt5")
|
os.system("pip install pyqt5 -i https://mirrors.aliyun.com/pypi/simple/")
|
||||||
os.systen('pip install PyQtWebEngine')
|
os.systen('pip install PyQtWebEngine -i https://mirrors.aliyun.com/pypi/simple/')
|
||||||
messagebox.showinfo(install, ok)
|
messagebox.showinfo(install, ok)
|
||||||
def wxpython():
|
def wxpython():
|
||||||
os.system("pip install wxpython")
|
os.system("pip install wxpython -i https://mirrors.aliyun.com/pypi/simple/")
|
||||||
messagebox.showinfo(install, ok)
|
messagebox.showinfo(install, ok)
|
||||||
def pygame():
|
def pygame():
|
||||||
os.system("pip install pygame")
|
os.system("pip install pygame -i https://mirrors.aliyun.com/pypi/simple/")
|
||||||
messagebox.showinfo(install, ok)
|
messagebox.showinfo(install, ok)
|
||||||
def Matplotlib():
|
def Matplotlib():
|
||||||
os.system('pip install Matplotlib')
|
os.system('pip install Matplotlib -i https://mirrors.aliyun.com/pypi/simple/')
|
||||||
messagebox.showinfo(install, ok)
|
messagebox.showinfo(install, ok)
|
||||||
def Seaborn():
|
def Seaborn():
|
||||||
os.system('pip install Seaborn')
|
os.system('pip install Seaborn -i https://mirrors.aliyun.com/pypi/simple/')
|
||||||
messagebox.showinfo(install, ok)
|
messagebox.showinfo(install, ok)
|
||||||
def fh():
|
def fh():
|
||||||
root.destroy()
|
root.destroy()
|
||||||
def kivy():
|
def kivy():
|
||||||
os.system('pip install kivy')
|
os.system('pip install kivy -i https://mirrors.aliyun.com/pypi/simple/')
|
||||||
messagebox.showinfo(install, ok)
|
messagebox.showinfo(install, ok)
|
||||||
def pysimpleGUI():
|
def pysimpleGUI():
|
||||||
os.system('pip install pysimpleGUI')
|
os.system('pip install pysimpleGUI -i https://mirrors.aliyun.com/pypi/simple/')
|
||||||
messagebox.showinfo(install, ok)
|
messagebox.showinfo(install, ok)
|
||||||
def pyside6():
|
def pyside6():
|
||||||
os.system('pip install pyside6')
|
os.system('pip install pyside6 -i https://mirrors.aliyun.com/pypi/simple/')
|
||||||
messagebox.showinfo(install ,ok)
|
messagebox.showinfo(install ,ok)
|
||||||
def flexx():
|
def flexx():
|
||||||
os.system('pip install flexx')
|
os.system('pip install flexx -i https://mirrors.aliyun.com/pypi/simple/d')
|
||||||
messagebox.showinfo(install, ok)
|
messagebox.showinfo(install, ok)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|
||||||
|
|||||||
@@ -9,30 +9,64 @@ 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():
|
||||||
os.system('pip install TensorFlow')
|
os.system('pip install TensorFlow -i https://mirrors.aliyun.com/pypi/simple/')
|
||||||
messagebox.showinfo(install, ok)
|
messagebox.showinfo(install, ok)
|
||||||
def pytorch():
|
def pytorch():
|
||||||
os.system('pip install pytorch')
|
os.system('pip install pytorch -i https://mirrors.aliyun.com/pypi/simple/')
|
||||||
messagebox.showinfo(install, ok)
|
messagebox.showinfo(install, ok)
|
||||||
def openai():
|
def openai():
|
||||||
os.system('pip install openai')
|
os.system('pip install openai -i https://mirrors.aliyun.com/pypi/simple/')
|
||||||
messagebox.showinfo(install, ok)
|
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.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()
|
||||||
|
|
||||||
|
|||||||
40
install.pyw
40
install.pyw
@@ -42,38 +42,50 @@ def web_install():
|
|||||||
def computer_install():
|
def computer_install():
|
||||||
open_exe('computer_install')
|
open_exe('computer_install')
|
||||||
def pyinstaller():
|
def pyinstaller():
|
||||||
os.system('pip install pyinstaller')
|
os.system('pip install pyinstaller -i https://mirrors.aliyun.com/pypi/simple/')
|
||||||
messagebox.showinfo('pip install', ok)
|
messagebox.showinfo('pip install', ok)
|
||||||
pass
|
pass
|
||||||
def nuitka():
|
def nuitka():
|
||||||
os.system('pip install nuitka')
|
os.system('pip install nuitka -i https://mirrors.aliyun.com/pypi/simple/')
|
||||||
messagebox.showinfo('pip install', ok)
|
messagebox.showinfo('pip install', ok)
|
||||||
pass
|
pass
|
||||||
def pywin32():
|
def pywin32():
|
||||||
os.system('pip install pywin32')
|
os.system('pip install pywin32 -i https://mirrors.aliyun.com/pypi/simple/')
|
||||||
messagebox.showinfo(install, ok)
|
messagebox.showinfo(install, ok)
|
||||||
pass
|
pass
|
||||||
def tqdm():
|
def tqdm():
|
||||||
os.system('pip install tqdm')
|
os.system('pip install tqdm -i https://mirrors.aliyun.com/pypi/simple/')
|
||||||
messagebox.showinfo(install, ok)
|
messagebox.showinfo(install, ok)
|
||||||
pass
|
pass
|
||||||
def numpy():
|
def numpy():
|
||||||
os.system('pip install numpy')
|
os.system('pip install numpy -i https://mirrors.aliyun.com/pypi/simple/')
|
||||||
messagebox.showinfo(install, ok)
|
messagebox.showinfo(install, ok)
|
||||||
pass
|
pass
|
||||||
def fh():
|
def fh():
|
||||||
root.destroy()
|
root.destroy()
|
||||||
|
|
||||||
# Button
|
# Button
|
||||||
pip_gui = Button(frame, text='GUI类安装', command=gui_install).pack()
|
pip_gui = Button(frame, text='GUI类安装', command=gui_install)
|
||||||
pip_web = Button(frame, text='web类安装', command=web_install).pack()
|
pip_web = Button(frame, text='web类安装', command=web_install)
|
||||||
pip_computer = Button(frame, text='机器学习类库安装', command=computer_install).pack()
|
pip_computer = Button(frame, text='机器学习类库安装', command=computer_install)
|
||||||
pip_pyinstaller = Button(frame, text='pyinstall安装', command=pyinstaller).pack()
|
pip_pyinstaller = Button(frame, text='pyinstaller安装', command=pyinstaller)
|
||||||
pip_tqdm = Button(frame, text='tqdm安装', command=tqdm).pack()
|
pip_tqdm = Button(frame, text='tqdm安装', command=tqdm)
|
||||||
pip_nuitka = Button(frame, text='nuitka安装', command=nuitka).pack()
|
pip_nuitka = Button(frame, text='nuitka安装', command=nuitka)
|
||||||
pip_pywin32 = Button(frame, text='pywin32安装', command=pywin32).pack()
|
pip_pywin32 = Button(frame, text='pywin32安装', command=pywin32)
|
||||||
pip_numpy = Button(frame, text='numpy安装', command=numpy).pack()
|
pip_numpy = Button(frame, text='numpy安装', command=numpy)
|
||||||
pip_fh = Button(frame,text='返回', command=fh).pack()
|
pip_fh = Button(frame,text='返回', command=fh)
|
||||||
|
|
||||||
|
# pack and label
|
||||||
|
Label(root, text='安装模式').pack()
|
||||||
|
pip_gui.pack()
|
||||||
|
pip_web.pack()
|
||||||
|
pip_computer.pack()
|
||||||
|
pip_pyinstaller.pack()
|
||||||
|
pip_tqdm.pack()
|
||||||
|
pip_nuitka.pack()
|
||||||
|
pip_pywin32.pack()
|
||||||
|
pip_numpy.pack()
|
||||||
|
pip_fh.pack()
|
||||||
|
|
||||||
|
|
||||||
# mainloop
|
# mainloop
|
||||||
|
|||||||
@@ -20,8 +20,6 @@ def open_exe(exe_name):
|
|||||||
# try
|
# try
|
||||||
try:
|
try:
|
||||||
import pip
|
import pip
|
||||||
print('pip已经安装!!')
|
|
||||||
sleep(0.5)
|
|
||||||
open_exe('client')
|
open_exe('client')
|
||||||
except ImportError:
|
except ImportError:
|
||||||
print("请安装Pip或者python")
|
print("请安装Pip或者python")
|
||||||
|
|||||||
@@ -25,8 +25,10 @@ text = '''0.1.0 暂无日志
|
|||||||
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.4 加入pip安装检测;加入更多web类库;修复一些BUG
|
||||||
|
1.5 加入更多机器学习库;修复一些BUG;修改pip安装检测代
|
||||||
|
1.5.1 修改pip源,让下载速度变得更加快速!!
|
||||||
|
|
||||||
当前版本:1.4 (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)
|
||||||
|
|||||||
@@ -29,11 +29,11 @@ canvas.pack(side="left", fill="both", expand=True)
|
|||||||
|
|
||||||
# def
|
# def
|
||||||
def Requests():
|
def Requests():
|
||||||
os.system('pip install Requests')
|
os.system('pip install Requests -i https://mirrors.aliyun.com/pypi/simple/')
|
||||||
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 -i https://mirrors.aliyun.com/pypi/simple/')
|
||||||
messagebox.showinfo(install, ok)
|
messagebox.showinfo(install, ok)
|
||||||
pass
|
pass
|
||||||
def open_exe(exe_name):
|
def open_exe(exe_name):
|
||||||
@@ -44,16 +44,16 @@ def open_exe(exe_name):
|
|||||||
pass
|
pass
|
||||||
pass
|
pass
|
||||||
def fastAPI():
|
def fastAPI():
|
||||||
os.system('pip install fastapi')
|
os.system('pip install fastapi -i https://mirrors.aliyun.com/pypi/simple/')
|
||||||
messagebox.showinfo(install, ok)
|
messagebox.showinfo(install, ok)
|
||||||
def sanic():
|
def sanic():
|
||||||
os.system('pip install sanic')
|
os.system('pip install sanic -i https://mirrors.aliyun.com/pypi/simple/')
|
||||||
messagebox.showinfo(install, ok)
|
messagebox.showinfo(install, ok)
|
||||||
def nameko():
|
def nameko():
|
||||||
os.system('pip install nameko')
|
os.system('pip install nameko -i https://mirrors.aliyun.com/pypi/simple/')
|
||||||
messagebox.showinfo(install, ok)
|
messagebox.showinfo(install, ok)
|
||||||
def pydantic():
|
def pydantic():
|
||||||
os.system('pip install pydantic')
|
os.system('pip install pydantic -i https://mirrors.aliyun.com/pypi/simple/')
|
||||||
messagebox.showinfo(install, ok)
|
messagebox.showinfo(install, ok)
|
||||||
def fh():
|
def fh():
|
||||||
root.destroy()
|
root.destroy()
|
||||||
@@ -79,7 +79,6 @@ bt_sanic.pack()
|
|||||||
bt_nameko.pack()
|
bt_nameko.pack()
|
||||||
bt_pydantic.pack()
|
bt_pydantic.pack()
|
||||||
bt_fh.pack()
|
bt_fh.pack()
|
||||||
bt_fh.pack()
|
|
||||||
|
|
||||||
|
|
||||||
# mainloop
|
# mainloop
|
||||||
|
|||||||
Reference in New Issue
Block a user