当前位置:网站首页>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
边栏推荐
- Molybdenum disulfide/hafnium dioxide composite nanomaterials (MoS2/HfO2) | tantalum-doped hafnium dioxide nanoparticles (Qi Yue bio)
- String.toLowerCase(Locale.ROOT)
- 中英文说明书丨CalBioreagents 山羊抗人白蛋白,IgG组分
- APP商品详情源数据接口(淘宝/京东/拼多多/苏宁/抖音等平台详情数据分析接口)代码对接教程
- Superparamagnetic iron [email protected]@cadmium sulfide nanocore-shell structure material|Fe3O4 magnetic nanop
- Adds, deletes, searches, and changes the leading doubly circular linked list (implemented in C language)
- Unity Gobang Game Design and Simple AI(3)
- flask创建数据库失败未报错
- Go lang1.18入门精炼教程——第一章:环境搭建
- db.sqlite3没有“as Data Source“解决方法
猜你喜欢
[GO], arrays and slices
中英文说明书丨CalBioreagents ACTH N端单克隆抗体
qt send mail program
phpstudy install flarum forum
中英文说明书丨TRC 交替醇(Catalogue NumberA575760)
Unity Gobang Game Design and Simple AI (2)
MYSQLg高级------批量插入百万级数据量
static静态关键字和继承
SiO2/KH550修饰四氧化三铁纳米磁性颗粒|PDA包裹四氧化三铁磁性纳米颗粒(科研级)
超顺磁四氧化三铁@二氧化硅@硫化镉纳米核壳结构材料|表面接枝mPEG的Fe3O4磁性纳米颗粒(f-Fe3O4)|相关产品
随机推荐
安装flask
qt发送邮件程序
Ferric oxide/bismuth sulfide nanocomposites ([email protected]@BSABiS nanoparticles) | dendrimer-stabilized bismuth sulfide nanop
[GO]、数组与切片
MYSQLg advanced ------ batch insert millions of data
kubernetes security
tidb 宕机测试
阿里巴巴官方技术号
ZIP压缩包文件删除密码的方法
static静态关键字和继承
String.toLowerCase(Locale.ROOT)
带头双向循环链表的增删查改(C语言实现)
redis 运行lua 脚本 出现Invalid argument(s)
Deep Learning - Principles of Neural Networks 2
VS2019常用快捷键
How to automatically fill down an excel table without dragging the mouse down
运算放大器(OPA)超详细参数讲解-运放---以及8个型号的运算放大器分析对比
中英文说明书丨TRC 交替醇(Catalogue NumberA575760)
CalBioreagents超全Id 蛋白兔单克隆抗体,助力科研
Getting started with kubernetes apparmor