flask项目在Linux运行

依赖安装:

1、flask

2、flask_sqlalchemy 

--需要安装flask-mysqldb  安装时提示mysql_config not found ,使用:yum install mysql-devel gcc gcc-devel python-devel 解决, 

再次安装还报错:ImportError: 'module' object has no attribute 'check_specifier' ,使用:pip install --upgrade setuptools==30.1.0 解决(升级pip版本)

3、

启动:

1、启动时报错中文错误,要使用python3来启动项目

原文地址:https://www.cnblogs.com/yc-c/p/12167029.html