Horje
How to Downgrade Flask Version

Python is known for its vast collection of libraries and frameworks and when we talk about web development in Python programming language Flask comes into mind. Flask is a micro-framework in Python used to build and manage the server-side logic of web applications and APIs.

Check the Current Version of Flask in Python

To check the current version of Flask in Python we have to run a command given below:

pip show flask

Output

Screenshot-2024-01-14-235200

In the above output, we can see the current version of the flask installed in the system.

Downgrade Flask Version in Python

Below are some ways by which we can downgrade the version of Flask in Python:

  • Using pip install command
  • Using force command

Using PIP Command

Some times we have to downgrade the current version of frameworks and libraries to perform a specific task because with the upgraded version some of the functionalities are terminated and we are unable to use them with latest versions. We will use the below command to downgrade our flask version by writing the specific version version as shown below.

pip install flask==2.3.3

Output:

In the below output we can see that the version of Flask is downgraded to the specified version.

Screenshot-2024-01-14-234359

Using force Command

If above command does not works then we can also use the second command given below to downgrade the Flask version:

pip install --force-reinstall flask==1.0.2

Output:

Screenshot-2024-01-16-221224

Check current Flask version

Screenshot-2024-01-16-221418




Reffered: https://www.geeksforgeeks.org


Python

Related
A Comprehensive Guide to 15 Essential Function for List Manipulation A Comprehensive Guide to 15 Essential Function for List Manipulation
Python List of Lists - How to Create List of Lists Python List of Lists - How to Create List of Lists
Why is Python So Popular? Why is Python So Popular?
Diabetes Prediction Machine Learning Project Using Python Streamlit Diabetes Prediction Machine Learning Project Using Python Streamlit
How to Deploy Diabetes Prediction model as FastAPI How to Deploy Diabetes Prediction model as FastAPI

Type:
Geek
Category:
Coding
Sub Category:
Tutorial
Uploaded by:
Admin
Views:
10