当前位置:网站首页>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
边栏推荐
- 超分之TDAN
- 440. 字典序的第K小数字(困难)-字典树-数节点-字节跳动高频题
- 双闭环直流调速系统matlab/simulink仿真
- SystemVerilog (VI) - variable
- 209. Minimum length subarray - sliding window
- Halo open source project learning (II): entity classes and data tables
- 圆环回原点问题-字节跳动高频题
- 470. Rand10() is implemented with rand7()
- Gets the time range of the current week
- Commonly used functions -- spineros:: and spineros::)
猜你喜欢

The JS timestamp of wechat applet is converted to / 1000 seconds. After six hours and one day, this Friday option calculates the time

为什么有些人说单片机简单,我学起来这么吃力?

嵌入式系统中,FLASH中的程序代码必须搬到RAM中运行吗?

1217_ Generating target files using scons

48. 旋转图像

stm32入门开发板选野火还是正点原子呢?
Flash project cross domain interception and DBM database learning [Baotou cultural and creative website development]

How to change input into text

STM32 entry development board choose wildfire or punctual atom?

Compilation principle first set follow set select set prediction analysis table to judge whether the symbol string conforms to the grammar definition (with source code!!!)
随机推荐
Special effects case collection: mouse planet small tail
402. Remove K digits - greedy
Metaprogramming, proxy and reflection
Client example analysis of easymodbustcp
1217_ Generating target files using scons
[batch change MySQL table and corresponding codes of fields in the table]
Ring back to origin problem - byte jumping high frequency problem
Leak detection and vacancy filling (VIII)
Sword finger offer 22 The penultimate node in the linked list - speed pointer
2021 Great Wall Cup WP
239. 滑动窗口最大值(困难)-单向队列、大顶堆-字节跳动高频题
402. 移掉 K 位数字-贪心
386. Dictionary order (medium) - iteration - full arrangement
2022年茶艺师(初级)考试模拟100题及模拟考试
In JS, t, = > Analysis of
On the method of outputting the complete name of typeID from GCC
Arithmetic expression
2022年广东省安全员A证第三批(主要负责人)特种作业证考试题库及在线模拟考试
node中,如何手动实现触发垃圾回收机制
SystemVerilog(六)-变量