Open In App

How to Downgrade Flask Version

Last Updated : 19 Jan, 2024
Improve
Improve
Like Article
Like
Save
Share
Report

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


Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads