当前位置:网站首页>Detailed deployment of flask project
Detailed deployment of flask project
2022-04-23 17:45:00 【Treasure girl's Growth Diary】
hello , Nice to meet you again , Come on, study together , Your attention is welcome !https://blog.csdn.net/hanhanwanghaha It's my honor to have your attention on the way to study , Making progress together is my motivation , Come on tomorrow !
Pagoda update Python edition
Because in the pagoda Python Version is 2.6.8, Use the pagoda Python For project management, you need to Python Upgrade to 3.x, Otherwise, you will be prompted that some modules failed to download during deployment . Next, let's start :
apt install
sudo apt install python3 python3-dev
Installation dependency
installed Python3 after , By default... Will be installed Python Package manager pip. install Python3 It will become pip3 Command to download dependencies .
pip3 install gevent-websocket
pip3 install psutil
easy_install Flask_Session
Change default Python edition
Delete the default version
sudo rm /usr/bin/python
take python3 Set the version as the system default version
sudo ln -s /usr/bin/python3 /usr/bin/python
change pip edition
sudo rm /usr/bin/python
sudo ln -s /usr/bin/pip3 /usr/bin/pip
Restart the pagoda panel .
Project deployment
Flask Project package
Export project dependent packages
pip freeze >requirements.txt
The project manager deploys the project
Set mapping
complete
Just visit the address just mapped .
版权声明
本文为[Treasure girl's Growth Diary]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231743049463.html
边栏推荐
- Leak detection and vacancy filling (6)
- On the problem of V-IF display and hiding
- In ancient Egypt and Greece, what base system was used in mathematics
- Kubernetes service discovery monitoring endpoints
- Add drag and drop function to El dialog
- 102. 二叉树的层序遍历
- Summary of common SQL statements
- 239. 滑动窗口最大值(困难)-单向队列、大顶堆-字节跳动高频题
- How to sort the numbers with text in Excel from small to large instead of the first number
- Generating access keys using JSON webtoken
猜你喜欢
Allowed latency and side output
PC uses wireless network card to connect to mobile phone hotspot. Why can't you surf the Internet
干货 | 快速抽取缩略图是怎么练成的?
1217_使用SCons生成目标文件
Error in created hook: "referenceerror:" promise "undefined“
2021 Great Wall Cup WP
Gets the time range of the current week
索引:手把手教你索引从零基础到精通使用
2022年上海市安全员C证操作证考试题库及模拟考试
394. String decoding - auxiliary stack
随机推荐
高德地图搜索、拖拽 查询地址
列表的使用-增删改查
圆环回原点问题-字节跳动高频题
STM32 entry development board choose wildfire or punctual atom?
On the problem of V-IF display and hiding
ES6 new method
2022年广东省安全员A证第三批(主要负责人)特种作业证考试题库及在线模拟考试
JS parsing and execution process
SiteServer CMS5. 0 Usage Summary
2022制冷与空调设备运行操作判断题及答案
Error in created hook: "referenceerror:" promise "undefined“
Exercise: even sum, threshold segmentation and difference (two basic questions of list object)
587. 安装栅栏 / 剑指 Offer II 014. 字符串中的变位词
Future 用法详解
一些问题一些问题一些问题一些问题
EasymodbusTCP之clientexample解析
[appium] write scripts by designing Keyword Driven files
索引:手把手教你索引从零基础到精通使用
440. The k-th small number of dictionary order (difficult) - dictionary tree - number node - byte skipping high-frequency question
239. Maximum value of sliding window (difficult) - one-way queue, large top heap - byte skipping high frequency problem