码迷,mamicode.com
首页 > 编程语言 > 详细

flask之python3 虚拟环境

时间:2018-09-15 15:18:38      阅读:137      评论:0      收藏:0      [点我收藏+]

标签: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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!