摘要: flask版本:3.0.3 Flask-Script:2.0.6 Flask-script使用及错误No module named flask._compat 解决方法 windows下推荐解决方案, 点击 flask_script 进入 init.py文件 或虚拟环境\Lib\site-packa 阅读全文
posted @ 2024-05-02 21:09 Excel2016 阅读(913) 评论(1) 推荐(1)
摘要: 问题报错: RuntimeError: Working outside of application context. This typically means that you attempted to use functionality that needed the current appli 阅读全文
posted @ 2024-05-02 18:29 Excel2016 阅读(312) 评论(0) 推荐(0)
摘要: 当我们使用SQLAlchemy库来连接和管理MySQL数据库时,有时候会遇到这样的错误信息:AttributeError: 'Engine'对象没有'execute'属性。该错误通常出现在我们尝试执行SQL语句时。 错误的原因 出现这个错误的原因通常是因为我们直接在Engine对象上调用execut 阅读全文
posted @ 2024-04-29 06:49 Excel2016 阅读(296) 评论(0) 推荐(0)
摘要: RuntimeError: The current Flask app is not registered with this 'SQLAlchemy' instance. Did you forget to call 'init_app', or did you create multiple ' 阅读全文
posted @ 2024-04-29 05:48 Excel2016 阅读(1738) 评论(0) 推荐(0)
摘要: 在菜单栏选择file-properties(文件-属性),设置Appearance-font-name(外观),设置字体,不要选择@开始的字体 阅读全文
posted @ 2024-04-24 20:59 Excel2016 阅读(92) 评论(0) 推荐(0)
摘要: 如果MySQL数据库用户的密码设置过于简单,数据库在用户登录后会提示重置密码,并且不接受简单的密码。 提示需要重置密码: ERROR 1820 (HY000): You must reset your password using ALTER USER statement before execut 阅读全文
posted @ 2024-04-23 14:49 Excel2016 阅读(128) 评论(0) 推荐(0)
摘要: 输入service mysqld start报错 报这个错多半是没有安装成功在yum install mysql-community-server的时候报错 The GPG keys listed for the "MySQL 5.7 Community Server" repository are 阅读全文
posted @ 2024-04-23 02:45 Excel2016 阅读(225) 评论(0) 推荐(0)
摘要: 一、前言 本文已CenOS 7为例说明如果设置VirtualBox共享文件夹。 二、安装虚拟机增强插件 找到增强插件镜像文件 在VirtualBox的安装目录下找到虚拟机增强插件安装镜像文件VBoxGuestAdditions。 我的VirtualBox安装目录在D:\Oracle\VirtualB 阅读全文
posted @ 2024-04-23 00:29 Excel2016 阅读(5250) 评论(0) 推荐(0)
摘要: 原因 国内使用官方的pypi源不稳定,经常出现timeout的情况,所以使用阿里的源代替 方法 新建配置文件 Window下: %APPDATA%\pip\pip.ini Linux下: ~/.pip/pip.conf 内容 [global] timeout = 60 index-url = htt 阅读全文
posted @ 2024-04-22 03:34 Excel2016 阅读(867) 评论(0) 推荐(0)
摘要: 一.安装环境: Linux系统:centos7,可以正常访问互联网。 python版本:3.12.3,建议网工直接就是安装python3的最新版本,毕竟python2和我们网工更不相关了。 环境最基本的就这些了 二.安装步骤 1.安装python3: 不多说,直接上安装过程~ #只是将python3 阅读全文
posted @ 2024-04-22 02:56 Excel2016 阅读(7044) 评论(1) 推荐(3)