The Wayback Machine - https://web.archive.org/web/20241001104131/https://www.geeksforgeeks.org/how-to-install-flask-in-windows/
Open In App

How to Install Flask in Windows?

Last Updated : 09 Jun, 2024
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Flask is basically a Python module. It can work with Python only and it is a web-developing framework. It is a collection of libraries and modules. Frameworks are used for developing web platforms. Flask is such a type of web application framework. It is completely written in Python language. Unlike Django, it is only written in Python. As a new user, Flask is to be used. As it is easier to handle. As it is only written in Python, before installing Flask on the machine, Python should be installed previously.  

Features of Python Flask:

  • Flask is easy to use and easily understandable for new users in Web Framework.
  • It can also be used as any third-party plugin extension.
  • It is also used for prototyping purposes.

Install Virtual Environment

We use a module named virtualenv which is a tool to create isolated Python environments. virtualenv creates a folder that contains all the necessary executables to use the packages that a Python project would need.

pip install virtualenv

Create Python virtual environment

Go to the local directory where you want to create your Flask app.

virtualenv venv

Activate a virtual environment based on your OS

For windows > venv\Scripts\activate
For linux > source ./venv/bin/activate
Install Virtual Environment

 

Install Flask on Windows or Linux

Step 1: Make sure that Python PIP should be installed on your OS. You can check using the below command.

pip -V
or
pip --version

Step 2: At first, open the command prompt in administrator mode. Then the following command should be run. This command will help to install Flask using Pip in Python and will take very less time to install. According to the machine configuration, a proper Flask version should be installed. Wait for some time till the process is completed. After completion of the process, Flask is completed successfully, the message will be displayed. Hence Installation is successful.

pip install flask
Install Flask on Windows

 

Step 3: After that, also the following two commands should be run. These commands will start Flask in the command prompt. Hence, the process is completed successfully.

python
import flask

Install Flask on Linux


Previous Article
Next Article

Similar Reads

How to Install the Windows Subsystem for Linux on Windows 11?
As a programmer, it is very important to test software on multiple platforms. However, it can be very tedious and inefficient to use multiple virtual machines to achieve the same. Thankfully, this process can be simplified if you are using Windows and wish to run a Linux distribution - with WSL. WSL, or Windows Subsystem for Linux, lets developers
2 min read
How to Download and Install Windows Movie Maker on Windows 10?
Movie Maker video is one of the best video editors available on the Microsoft store itself and is free. Movie Maker video editor is a single-OS software, i.e. it works only in Windows, and not on macOS, and Linux. Movie maker has more than 10 million users worldwide. Some of the very cool features of movie maker video editors are that the exports o
3 min read
How to Install Flask on Linux?
Flask is a python module. It can work with python only. It is a web-developing framework. A web framework is a collection of libraries and modules. Frameworks are used for developing web platforms. Flask is such a type of web application framework. It is completely written in Python language. Unlike Django, it is only written in Python. As a new us
2 min read
How to disable superfetch in windows 10 or windows 11?
Windows Vista introduced the Superfetch (SysMain) capability, which is still a part of the Windows operating system. It is a built-in service designed to speed up startup times and enhance performance by preloading frequently used apps in RAM. It was, however, primarily developed for older PCs. For contemporary PCs running Windows 10 and Windows 11
4 min read
How to Upgrade From Windows 10 to Windows 11 For Free?
Windows 11 is a very popular operating system by Microsoft. Windows 11 is free for Windows 10 PC that meet some minimum hardware requirements. There is no need to spend money on a brand-new computer when you can upgrade to Windows 11 for free. Besides this, Microsoft officially announced that existing PCs (original versions) will be offered to upgr
5 min read
How to Install Kali Linux on Windows?
Kali Linux is an open-source Linux distribution based on Debian, designed for sophisticated penetration testing and security auditing. Kali Linux includes hundreds of tools for diverse information security activities such as penetration testing, security research, computer forensics, and reverse engineering. This multi-platform solution is accessib
2 min read
How to Install Ubuntu on Windows using VMware?
VMWare, a short form of "VirtualMachine Ware". A cloud computing company that develops virtualization software, management, and networking interfaces or tools. It provides hypervisor tools or products that help in running virtual machines, clusters, and containers. By using this software we can virtualize the computer with required computing resour
2 min read
How to Install Only Office Desktop Editors on Windows?
The only office is free and open-source software. It is created by Ascensio System SIA. Its headquarter is in Riga, Latvia. Only office has many features like an online document editor, corporate communication, mail and project management tool, etc. Its license is AGPL-3.0-only. It is used on operating systems like, Windows; macOS; Linux; Android;
3 min read
How to Install Mutagen for Python on Windows?
There are many important python modules or packages from which Mutagen is used for handling the audio metadata also known as music metadata, it is an independent python standard library and is available open source and free for windows, macOS, and Linux operating systems, etc. Here we will learn how to install the Mutagen module on the windows oper
2 min read
How to Download and Install FastStone Capture on Windows?
FastStone Capture is a robust, portable, and feature-rich screen capture and screen recording program. It enables you to quickly capture and annotate anything that appears on the screen, including windows, objects, menus, complete screens, fixed regions, freehand rectangles, and scrolling web pages. You can record all screen activity, including cha
2 min read
How to Download and Install Power DVD on Windows?
A universal media player for video files, images, music, and movie discs is CyberLink PowerDVD. In 2016, PowerDVD became the first and only software player in the world to pass the BD-ROM 4.0 PC Application Software License process and received certification from the Blu-ray Disc Association (BDA) for the playback of Ultra HD Blu-ray Discs. The ide
2 min read
How to Download and Install NoxPlayer on Windows?
NoxPlayer is a free Android OS emulator that allows you to run Android applications on your computer. The program is simple to use because of its simple UI. App and game controls are intuitively mapped to the keyboard. Let's now learn the steps to download and install NoxPlayer on windows, Steps to Download and Install NoxPlayer on Windows Step 1:
1 min read
How to Install Visual C++ on Windows?
In this article, we will discuss the process of installing Visual C++ on Windows. Visual C++ is part of the general "C suite" of programming languages often used for many different types of development projects. The full name of the product is Microsoft Visual C++, which is sometimes abbreviated as MSVC or VC++. Installing Visual C++ on Windows: Fo
1 min read
How to Download and Install CAM UnZip on Windows?
While CAM unZip promises to make zipping and unzipping files on Windows easier, it also includes power-user features, including a command-line interface, password compatibility, and the capacity to launch files immediately after extraction. Although CAM UnZip is made to be very simple to use, individuals who desire and require complex capabilities
1 min read
How to Install Git on Windows Subsystem for Linux?
Git is an open-source distributed version control system developed to handle everything from simple to complex projects with performance and speed. Git software allows a team or group of developers to work together, with all using the same files and folders. It gradually reduces the confusion that tends to happen when multiple people are editing th
2 min read
How to Install Python Pyscreenshot on Windows?
PyScreenshot is a Python module and built since the PIL ImageGrab module only supported Windows, although Pillow now supports Linux and macOS as well. Flexible backends, Wayland compatibility, occasionally superior performance, and optional sub-processing are some of the main features of PyScreenshot that make it more useful in many scenarios. Usin
2 min read
How to Install wxPython on Windows?
Python provides wxpython module which is an open-source module that allows us to create a high functional, cross-platform graphical user interface. In this article, we will look into the process of installing the wxpython module on a windows machine. Pre-requisites: The only thing that you need for installing the Scrapy module on Windows are: Pytho
2 min read
How to Install Linux on Windows PowerShell Subsystem?
There are several ways to Install a Linux subsystem on your Windows PC Powershell Environment. It is good for learners, but it is recommended using original Linux OS if you are a developer as the Subsystem lacks the pre-installed Linux tools. Before we begin installing a Linux subsystem, we need to first enable a Windows feature for Subsystems. Ena
2 min read
How to Install Potplayer on Windows?
South Korean Internet business Kakao created PotPlayer, a multimedia software player, for the Microsoft Windows operating system (formerly Daum Communications). It competes with other well-known Windows media players including Media Player Classic, GOM Player, KMPlayer, VLC Media Player, and MPV (media player). Reviewers have given PotPlayer positi
2 min read
How to Install FreeCAD on Windows?
FreeCAD is a general-purpose, free, and open-source software. It was initially released on 29 October 2002 and written in C++ and Python languages. It is a parametric 3D computer-aided design (CAD) modeler and a building information modeling (BIM) software that supports the finite element method (FEM). It is generally used for designing mechanical
3 min read
How to Download and Install AKVIS HDRFactory for Windows?
AKVIS HDRFactory is a flexible application for editing photos and producing HDR photographs. By integrating many shots of the same object taken with various exposure values, the software creates HDR photos. The end effect is a powerful, contrasted image that more accurately captures reality than a mere photo. The human eye can distinguish far more
3 min read
How to Download and Install PeaZip on Windows?
In order to provide an all-purpose zip utility with a powerful unified GUI that, unlike most other file archivers like i.e. WinZip and WinRar, is relatively portable and cross-platform as well, PeaZip is based on the solid and proven Open Source technology of 7-Zip and other great Open Source tools (like FreeARC, PAQ, UPX...) for supporting (deskto
1 min read
How to Download and Install MEmu Android Emulator on Windows?
MEmu is a PC Android Emulator that simulates the Android operating system. It offers a genuine Android OS user experience, allowing you to install, run, and uninstall any Android application, exactly like a physical Android smartphone. Controlling your applications or games is as simple as using your keyboard and mouse and, in certain cases, additi
1 min read
How to Install Free VeeCool Video Capture in Windows?
VeeCool Video Capture may record video from video sources including USB cameras, TV cards, and digital video cameras as well as from URLs web links like audio/video URLs and digital cameras, as well as from media assets like video files, photos, and flash. On your PC screen, you can record any video, sound, or images that you view. making video. Th
2 min read
How to Install Go on Windows?
Prerequisite: Introduction to Go Programming Language Before, we start with the process of Installing Golang on our System. We must have first-hand knowledge of What the Go Language is and what it actually does? Go is an open-source and statically typed programming language developed in 2007 by Robert Griesemer, Rob Pike, and Ken Thompson at Google
3 min read
How to Install LibreOffice On Windows?
LibreOffice is a free and open-source office productivity software suite, a project of The Document Foundation. It was forked in 2010 from OpenOffice.org, an open-sourced version of the earlier StarOffice. It is available in 119 languages. It is developed by The Document Foundation. It is easy to use and Convenient. It is written in C++, XML, and J
2 min read
How to Install VLC Media Player on Windows?
VLC (or VideoLAN Client) media player is a lightweight application created by an open-source development group known as the VideoLAN project. This video and media player has been leading the industry for years in terms of popularity, and it’s not hard to see why. You can use a VLC media player to open audio and video files in just about any format
2 min read
How to install XAMPP on Windows ?
XAMPP is the most popular software package which is used to set up a PHP development environment for web services by providing all the required software components. During the process of software deployment, most of the web servers use almost similar components, so use of XAMPP provides easy transition from local server to live server. XAMPP is a A
4 min read
How to download and install Audacity on Windows?
Audacity is a free and open-source digital audio editor and recording application software. Even two decades after its original launch date, Audacity remains one of the most widely-used open source applications. It’s a free audio editor that works on Windows, Mac, and Linux systems. It is developed by The Audacity Team. It was initially released on
2 min read
How to Install Perl on Windows?
Prerequisite: Introduction to Perl Before, we start with the process of Downloading and Installing Perl on Windows operating system, we must have first-hand knowledge of What the Perl Language is and what it actually does?. Perl is a general-purpose, high level interpreted and dynamic programming language. Perl was originally developed for text pro
3 min read
Article Tags :