当前位置:网站首页>install flask
install flask
2022-08-09 06:27:00 【Koala Rice Bowl】
If the python environment is not installed, please click this link to downloadhttps://www.python.org/downloads/release/python-392/
Flask installation conditions
Installing Flask usually requires Python 2.6 or above.While Flask and its dependencies work with Python 3 and above, many Flask extensions do not properly support it.So, it is recommended to install Flask on Python 2.7.
Install virtualenv for development
virtualenv is a virtual Python environment builder.It helps users to create multiple Python environments in parallel.Therefore, it avoids compatibility issues between different versions of the library.To put it bluntly, the virtual environment can be installed without interfering with other python environments.
1. Install virtualenv using the following command in a command window:
pip install virtualenv #windows use this statementsudo apt-get install virtualenv #Linux/Mac OS use this
2. Create a new virtual environment in the folder after the installation is complete
mkdir newvenv #create filecd newvenv #Enter filevirtualenv venv #Create an environment (Venv is the name of your virtual environment and can be changed)
3. Activate the corresponding environment:
windos Enter into the venv\scripts\ directory and enter activate to activate the environmentvenv\scripts\activate#This is windowsvenv/bin/activate #This is Linux/OS X
If there are brackets with your environment in front of your command line, it means that you have activated successfully
Since it can be activated, you can also exit
Enter the environment directory like the previous operation
**cd Scripts #Enter the virtual environment scripts directorydeactivate #exit environment
If the preceding brackets disappear, it means that the current environment has been exited
4. Install Flask in the prepared virtual environment:
pip install Flask #windows use this statementsudo apt-get install Flask#Linux/Mac OS use this
Successfully installed
边栏推荐
- 中英文说明书丨TRC D-阿卓糖(D-Altrose)
- String.toLowerCase(Locale.ROOT)
- 中英文说明书丨TRC 交替醇(Catalogue NumberA575760)
- GNNExplainer应用于节点分类任务
- CalBioreagents超全Id 蛋白兔单克隆抗体,助力科研
- untiy countdown
- 为什么以太网无法接收大于1500字节的数据包?
- How to find package information and pin definitions for NXP S32K1xx series microcontrollers
- 如何操作数据库
- Invalid argument(s) appears when redis runs lua script
猜你喜欢
GNNExplainer applied to node classification task
使用百度EasyDL实现智能垃圾箱
Unity C# 委托——事件,Action,Func的作用和区别
sqlserver导入数据类型问题
excel表格如何不需鼠标往下拖动而自动往下填
抗菌药物丨Toronto Research Chemicals 天冬酰胺D
JMeter test - JMeter 】 【 upload multiple images/batch CSV file upload pictures interface parametric method
Teach you how to make the Tanabata meteor shower in C language - elegant and timeless (detailed tutorial)
报错:FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disab
二硫化钼/二氧化铪的复合纳米材料(MoS2/HfO2)|钽掺杂二氧化铪纳米颗粒(齐岳bio)
随机推荐
具有CT造影功能的硫化铋纳米棒|硫化铋-锌原卟啉复合材料(PAMAM/Bi2S3复合纳米粒子)
为什么以太网无法接收大于1500字节的数据包?
【Feel】In the Unity Feel plugin, Camera cannot display CameraShake correctly
AIOT介绍
Likou Brush Question 180
Initials-Letter Query Tool-Word Abbreviation Query Online Tool
MYSQL高级篇-----查询截取分析,锁机制,主从复制
zip压缩包密码解密
什么是excel文件保护
JMeter test - JMeter 】 【 upload multiple images/batch CSV file upload pictures interface parametric method
db.sqlite3没有“as Data Source“解决方法
kubernetes security
语句加锁分析
pdf加密、找回密码
untiy countdown
Unity 五子棋游戏设计和简单AI(3)
Domain name batch query online tool
Qt learning (3) - Qt module
深度学习-神经网络原理2
qt send mail program