In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
In this article, the editor introduces "how to deploy the Flask project" in detail, the content is detailed, the steps are clear, and the details are handled properly. I hope this article "how to deploy the Flask project" can help you solve your doubts.
Pagoda updates Python version
Because the Python version in the pagoda is 2.6.8, if you use the pagoda Python project management, you need to upgrade the Python to 3.x, otherwise you will be prompted that some modules failed to download during deployment. Next, let's do this:
Apt installation
Sudo apt install python3 python3-dev
Installation dependency
After Python3 is installed, the Python package manager pip is installed by default. After installing Python3, it becomes a pip3 command to download dependencies.
Pip3 install gevent-websocketpip3 install psutileasy_install Flask_Session changes the default Python version
Delete the default version
Sudo rm / usr/bin/python
Set the python3 version to the system default version
Sudo ln-s / usr/bin/python3 / usr/bin/python
Change the pip version
Sudo rm / usr/bin/pythonsudo ln-s / usr/bin/pip3 / usr/bin/pip
Just restart the pagoda panel.
Project deployment
Flask project packaging
Export project dependency package
Pip freeze > requirements.txt
Project Manager deployment Project
Set Mappin
Complete
Just access the address you just mapped.
After reading this, the article "how to deploy the Flask project" has been introduced. If you want to master the knowledge points of this article, you still need to practice and use it yourself. If you want to know more about the article, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 283
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.