flask之python3 虚拟环境
Posted zxpo
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了flask之python3 虚拟环境相关的知识,希望对你有一定的参考价值。
Python 3 comes bundled with the venv
module to create virtual environments
Create an environment
Create a project folder and a venv
folder within:
mkdir myproject
cd myproject
python3 -m venv venv
Activate the environment
Before you work on your project, activate the corresponding environment:
. venv/bin/activate
Your shell prompt will change to show the name of the activated environment
Install Flask
Within the activated environment, use the following command to install Flask:
pip install Flask
以上是关于flask之python3 虚拟环境的主要内容,如果未能解决你的问题,请参考以下文章