宝塔面板部署Flask
宝塔面板部署Flask
参考:https://blog.csdn.net/weixin_45904682/article/details/124218744
核心要点:
-
导入项目依赖
pip3 freeze >requirements.txt
参考:https://www.cnblogs.com/xiaofeng91/p/16332087.html
参考:https://blog.csdn.net/m0_59100947/article/details/121262357 -
常见问题
(1)报错502 Bad Gateway,返回python项目管理器查看日志,查看报错原因。 -
开启虚拟环境
参考:https://blog.csdn.net/bluecat333/article/details/123718101 -
部署conda环境
参考:https://blog.csdn.net/weixin_41862755/article/details/120669165
宝塔面板配置Git同步-Git远程仓库部署工具
文档:https://www.bt.cn/bbs/thread-42294-1-1.html
查看linux架构
参考:https://www.cnblogs.com/geek233/p/15775277.html
Wind API手册
参考:https://www.windquant.com/qntcloud/apiRefHelp/id-91573a98-70d5-4462-8c6f-546ab45c8652
json格式转换
- python对象转json
参考:https://www.runoob.com/python/python-json.html - Pandas转json
参考:https://blog.csdn.net/qq_43168299/article/details/115761834 - Pandas转字典
参考:https://www.qb5200.com/article/355827.html
发送请求
- requests库的使用
参考:https://blog.csdn.net/erfan_lang/article/details/120559899
scroll-view 下拉加载更多
参考:https://blog.csdn.net/ActiveQi/article/details/124752307
参考:https://www.yisu.com/zixun/195296.html
页面跳转传参数
参考:https://www.jianshu.com/p/176cfaeb2342
遇到的问题
- 安装失败

- 请求过程出现错误

- pip 更新
WARNING: You are using pip version 20.3.3; however, version 22.3.1 is available.
You should consider upgrading via the '/www/server/panel/pyenv/bin/python3.7 -m pip install --upgrade pip' command.
浙公网安备 33010602011771号