flask之python3 虚拟环境

2021-06-27 20:07

阅读:395

标签:utils   shel   href   led   and   bin   within   lib   activate   

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 虚拟环境

标签:utils   shel   href   led   and   bin   within   lib   activate   

原文地址:https://www.cnblogs.com/zxpo/p/9650891.html


评论


亲,登录后才可以留言!