![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
文章平均质量分 71
herbertsyxx
不正经的设计 & 阅读爱好者
展开
-
Flask + gunicorn + nginx + supervisord 部署
文章目录Flask gunicorn nginx supervisord 部署Gunicorn 部署 python webNginx 提供反向代理Supervisor 管理进程 Flask gunicorn nginx supervisord 部署 拉取 git pull 项目根目录下创建一个包含生产环境下的程序实例 wsgi.py 模块 # wsgi.py import os from dotenv import load_dotenv # 手动导入环境变量 dotenv_path = os.原创 2021-03-20 02:09:52 · 414 阅读 · 0 评论 -
Python 虚拟环境使用
文章目录Python 虚拟环境使用一、virtualenv1. 使用 pip2. 创建运行环境3. 激活环境4. 退出环境5. 删除环境6. 使用环境二、 virtualenvwrapper1. 安装2. 创建虚拟环境3. 激活环境4. 退出环境5. 删除环境6. 其它指令三、conda1. 安装2. 更换源3. 创建环境4. 激活环境5. 退出环境6. 删除环境7. 其他命令* Anaconda创建环境失败问题1. 控制台输入命令2. 打开用户目录下的 .condarc 文件四、pipenv1. 安装2.原创 2021-03-16 13:43:46 · 114 阅读 · 0 评论 -
Ubuntu Pip 安装 psycopg2 错误
文章目录Ubuntu Pip 安装 psycopg2 错误错误异常安装 libpq-dev安装 psycopg2 Ubuntu Pip 安装 psycopg2 错误 错误异常 [...] Building wheels for collected packages: psycopg2 Building wheel for psycopg2 (setup.py) ... error ERROR: Command errored out with exit status 1: command: /原创 2021-03-16 13:42:53 · 1225 阅读 · 0 评论