Open In App

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



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 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.

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:

Check current Flask version

Article Tags :