当前位置:网站首页>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
边栏推荐
- CalBioreagents超全Id 蛋白兔单克隆抗体,助力科研
- Unity backgammon game design and simple AI implementation (1)
- MYSQL Advanced Chapter - Query Interception Analysis, Lock Mechanism, Master-Slave Replication
- 声母-字母查询工具-词语缩写查询在线工具
- 正则表达式-判断字符串是否匹配“AABB”模式
- 域名批量查询在线工具
- 超顺磁四氧化三铁@二氧化硅@硫化镉纳米核壳结构材料|表面接枝mPEG的Fe3O4磁性纳米颗粒(f-Fe3O4)|相关产品
- 中英文说明书丨CalBioreagents 山羊抗人白蛋白,IgG组分
- 多行字符串排序在线工具
- Used to import the data type
猜你喜欢
Unity Gobang Game Design and Simple AI (2)
Introduction of convenient functions and convenient shortcut keys of vs tomato assistant
一道很简答但是没答对的SQL题
聚酰胺-胺(PAMAM)树形聚合物-硫化铋复合纳米粒子|硫化铋修饰Gd‑DTPA‑OA配体|科研实验用
A test engineer with an annual salary of 35W was laid off. Personal experience: advice that you have to listen to
idea中PlantUML插件使用
Fe3O4/SiO2 Composite Magnetic Nanoparticles Aminated on SiO2-NH2/Fe3O4 Surface (Qiyue Reagent)
mongo+ycsb性能测试及线程数分析
GNNExplainer应用于节点分类任务
代码目录结构
随机推荐
力扣刷题180
JMeter test - JMeter 】 【 upload multiple images/batch CSV file upload pictures interface parametric method
Data center project preliminary summary
[MySQL]二、进程的关系、MySQL密码破解、建表和建库相关命令
中英文说明书丨CalBioreagents 醛固酮单克隆抗体
文本字符串长度排序 - 在线工具
sqlserver导入数据类型问题
Program Performance Analysis - Complexity Analysis
Superparamagnetic iron [email protected]@cadmium sulfide nanocore-shell structure material|Fe3O4 magnetic nanop
【Feel】In the Unity Feel plugin, Camera cannot display CameraShake correctly
Xilinx Zynq ZynqMP DNA
Unity 五子棋游戏设计和简单AI(3)
Text String Length Sorting - Online Tool
excel表格如何不需鼠标往下拖动而自动往下填
报错:FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disab
MYSQLg advanced ------ batch insert millions of data
SiO2 / KH550 modified ferroferric oxide nano magnetic particles | PDA package the ferromagnetic oxide nanoparticles (research)
io.lettuce.core.RedisCommandTimeoutException Command timed out
jdepend
Unity C# 委托——事件,Action,Func的作用和区别