当前位置:网站首页>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
边栏推荐
- The 24th day of the special assault version of the sword offer
- MYSQLg高级------批量插入百万级数据量
- After the VB.net program is closed, the background is still connected to SQL
- 力扣刷题180
- 锁执行的过程
- 中英文说明书丨TRC 交替醇(Catalogue NumberA575760)
- 金仓数据库能否设置事务自动提交
- Unity Gobang Game Design and Simple AI(3)
- Deep Learning - Principles of Neural Networks 2
- [GO], arrays and slices
猜你喜欢
随机推荐
中英文说明书丨CalBioreagents 醛固酮单克隆抗体
Xilinx Zynq ZynqMP DNA
关于如何查找NXP S32K1xx系列单片机的封装信息和引脚定义
Unity 五子棋游戏设计和简单AI(3)
excel表格如何不需鼠标往下拖动而自动往下填
如何操作数据库
Introduction of convenient functions and convenient shortcut keys of vs tomato assistant
Unity C# 委托——事件,Action,Func的作用和区别
workbench 数据导出
zip压缩包密码解密
输入框最前面添加放大镜&&background-image和background-color冲突问题
中英文说明书丨CalBioreagents 山羊抗人白蛋白,IgG组分
工控设备的系统如何进行加固
普罗米修斯原理及节点发布
【Feel】In the Unity Feel plugin, Camera cannot display CameraShake correctly
Initials-Letter Query Tool-Word Abbreviation Query Online Tool
[R language] Normalize and organize files into folders of various file types
el-table缓存数据
程序性能分析 —— 复杂度分析
GNNExplainer applied to node classification task