This README will guide you through the process of installing Python and using the pip
package manager to install Flask on a Windows operating system. This guide is intended for beginners who have no prior experience with Python.
Python is a widely-used programming language and is essential for running Flask. Follow these steps to install Python on your Windows machine:
-
Visit the official Python website: python.org.
-
Scroll down to the "Python Releases for Windows" section and click on the "Download Python x.y.z" button (x.y.z represents the current Python version).
-
On the download page, scroll down again and choose the "Windows installer (64-bit)" or "Windows installer (32-bit)" based on your system architecture. Most modern Windows systems are 64-bit.
-
Once the download is complete, run the installer by double-clicking on the downloaded file.
-
In the Python installer, check the box that says "Add Python x.y.z to PATH" during installation. This is crucial for easily running Python from the command prompt.
-
Click "Install Now" and follow the on-screen instructions to complete the installation.
After successfully installing Python, it's essential to verify the installation:
-
Open the Windows Command Prompt by searching for "cmd" or "Command Prompt" in the Start menu.
-
In the Command Prompt, type the following command and press Enter:
python --version
You should see the Python version you installed displayed in the Command Prompt.
Now that Python is installed, you can use pip
(Python's package manager) to install Flask:
-
Open the Windows Command Prompt.
-
To install Flask, simply run the following command:
pip install flask
This command will download and install Flask and its dependencies.
Congratulations! You have successfully installed Python and Flask on your Windows machine. You are now ready to start building web applications using Flask.
Now that all dependencies for this project are installed. To run a file do the following
python <filename.py>
For calculator with HTML program alone output will in the browser and for rest of them you can see the output locally.