Python
supertree_l
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
slqalchemy 多个外键指向同一个表报错
ERROR in server: Could not determine join condition between parent/child tables on relationship TestUser.tasks - there are multiple foreign key paths linking the tables. Specify the 'foreign_keys' ar...原创 2020-02-04 19:35:33 · 973 阅读 · 0 评论 -
(1832, "Cannot change column 'user_id': used in a foreign key constraint 'wx_balance_flow_record_RM
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (1832, "Cannot change column 'user_id': used in a foreign key constraint 'wx_balance_flow_record_RMB_ibfk_1'") [SQL: 'ALTER TABLE `wx_balance_...原创 2019-11-02 14:13:21 · 1011 阅读 · 0 评论 -
sqlalchemy ERROR [root] Error: Target database is not up to date.
执行“ python xxx.py db migration -m'添加关系'”时 数据库实际的header和migration文件夹里的version里的最新版本号步一直, 应该是执行了migration 后忘记执行upgrade了, 然后又重复执行了几次mrgration, 就导致创建了几个版本, 恢复 ...原创 2019-10-31 16:55:20 · 1094 阅读 · 1 评论 -
windows和Linux配置Python virtualenv 虚拟环境
打开命令行 pip install virtualenv #安装虚拟环境 pip install virtualenvwrapper-win #安装虚拟环境扩展包 设置系统环境变量, 指向python的安装目录下的Script目录 Linux下配置 sudo pip install virtualenv #安装虚拟环境 sudo pip install virtual...原创 2019-03-25 13:27:20 · 266 阅读 · 0 评论 -
pthon3.6 fdfs_client.client import 失败解决方法
如果 安装有其他fdfs包, 要先卸载完再安装py3Fdfs pip install py3Fdfs 测试 from fdfs_client.client import * client_conf_obj = get_tracker_conf('/etc/fdfs/client.conf') client = Fdfs_client(client_conf_obj) ret = cli...原创 2019-04-04 00:12:43 · 2515 阅读 · 3 评论
分享