摘要: 安装 pip install virtualenv pip install virtualenvwrapper export WORKON_HOME=$HOME/.virtualenvs # 可以加入终端配置文件内,制定虚拟环境统一安放目录 # virtualenvwrapper.sh 找不到这个文 阅读全文
posted @ 2023-03-27 15:57 Python-永远滴神 阅读(26) 评论(0) 推荐(0) 编辑
摘要: Mac 安装 安装 homebrew 使用brew安装apr、apr-util和pcre brew install apr brew install apr-util brew install pcre 下载安装包 https://httpd.apache.org/download.cgi 解压并进 阅读全文
posted @ 2022-06-15 11:44 Python-永远滴神 阅读(103) 评论(1) 推荐(0) 编辑
摘要: Flask-SQLAlchemy 二次开发,使其支持读写分离 ​ sqlalchemy 并没有像 django-orm 一样内置完善的读写分离方案, 但是提供了可以自定义的接口: 官方文档, 我们可以借此对 flask-sqlalchemy 进行二次开发, 实现读写分离 from flask imp 阅读全文
posted @ 2022-03-07 15:57 Python-永远滴神 阅读(479) 评论(3) 推荐(0) 编辑
摘要: MacOS 安装 LuaJIT-2.1.0-beta1 LuaJIT官网:http://luajit.org/download.html 下载安装: ➜ axel http://luajit.org/download/LuaJIT-2.1.0-beta1.tar.gz ➜ tar -xvf LuaJ 阅读全文
posted @ 2021-06-22 15:36 Python-永远滴神 阅读(468) 评论(0) 推荐(0) 编辑
摘要: 一、MYSQL中json类型的数据处理 ​ MYSQL 5.7.8中引入了json字段类型 json字段的操作方法 初始化数据 -- 创建表 含有字段id、aley, 其中aley为json类型 mysql> show create table test; + + + | Table | Creat 阅读全文
posted @ 2021-06-08 10:54 Python-永远滴神 阅读(451) 评论(0) 推荐(0) 编辑
摘要: docker容器访问宿主机上的服务 ​ 今天起了一个Nginx容器,想要将请求转发到在宿主机上启动的服务。 ​ 在nginx配置文件中直接写宿主机的ip可以直接将请求转发到宿主机上 location ^~ /api/ { ... proxy_pass http://47.100.237.128:80 阅读全文
posted @ 2021-05-23 20:18 Python-永远滴神 阅读(760) 评论(0) 推荐(0) 编辑
摘要: MacBook 安装 uwsgi 报错 Exception: you need a C compiler to build uWSGI 解决方法 $:pip install uwsgi Traceback (most recent call last): File "<string>", line 阅读全文
posted @ 2021-03-16 16:27 Python-永远滴神 阅读(1355) 评论(0) 推荐(0) 编辑
摘要: navicat连接mysql 报错:1698 - Access denied for user 'root'@'172.17.0.1' 问题描述: ​ 安装完mysql之后通过命令行 mysql -u root -p 可以连接mysql 但是通过工具navicat连接时报错:1698 - Acces 阅读全文
posted @ 2021-03-09 14:04 Python-永远滴神 阅读(305) 评论(0) 推荐(0) 编辑
摘要: # Redis configuration file example. # # Note that in order to read the configuration file, Redis must be # started with the file path as first argumen 阅读全文
posted @ 2021-02-22 14:06 Python-永远滴神 阅读(258) 评论(0) 推荐(0) 编辑
摘要: csv文件批量插入sybase数据库 # -*- coding:utf-8 -*- import os import pyodbc import pandas as pd from math import ceil from pandas.api.types import is_datetime64 阅读全文
posted @ 2020-11-02 11:28 Python-永远滴神 阅读(300) 评论(0) 推荐(0) 编辑