在虚拟环境中安装flask_如何在虚拟环境中安装Flask

在虚拟环境中安装flask

If you wish to use Flask, you are in the right place! This guide will teach you how to install Flask if you want to explore web development with it.

如果您想使用Flask,那么您来对地方了! 本指南将教您如何使用Flask安装Web开发。

Just keep in mind that Flask might not always be the best choice – it gets difficult to build large web-applications with it if you are new to web development in Python. Perhaps check out Django as another option.

请记住,Flask可能并不总是最好的选择–如果您不熟悉Python Web开发,将很难用它来构建大型Web应用程序。 也许签出Django作为另一种选择。

Flask is a micro-framework and you can pick the functionality you wish to have over the basic barebones functionality you already have from a standard web-framework.

Flask是一个微框架,您可以从标准Web框架中选择希望拥有的功能,而不是已经拥有的基本准系统功能。

First make sure you've installed Python 3 and are using it inside a virtual environment.

首先,请确保您已安装Python 3并在虚拟环境中使用它。

Also, make sure that you are not inside a virtual environment already. Then create a new virtual environment, named py3-flask

另外,请确保您尚未位于虚拟环境中。 然后创建一个新的虚拟环境,名为py3-flask

$ mkvirtualenv py3-flask --python=/usr/bin/python3

Now, execute the workon command to see a list of virtual environments in

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值