How To Uninstall Specific Version In Numpy
Last Updated :
14 Feb, 2024
NumPy is a fundamental library in Python programming. In the development of projects, versioning allows development teams to keep track of changes they make to the project code. The changes could be functions, features, bug fixes, and more.
So that is managing library versions becomes crucial. With this article let's understand the methods to Uninstall Specific Version In Numpy.
Uninstalling Specific Version Of NumPy
To uninstall a specific version of NumPy, below are some methods or approaches for uninstalling a specific verions of NumPy.
Approach 1: Uninstall the Specific version
Use the 'pip uninstall numpy' Command for uninstall the existing version. Below are some of the steps, which helps in uninsatlling a specific version of NumPy:
Step 1: Open Terminal or Command Prompt in your OS
Step 2: Check the currently installed NumPy Version
- Before updating, it is very helpful to know the currently installed version of NumPy in Python. You can check the currently installed version using a specific code snippet in a Python environment: with command:
pip show numpy
Output:

Step 3: Uninstall Specific Version
Use the following command to uninstall a specific/desired version
pip uninstall numpy=='desired version'
Output:

Here you can see that we successfully uninstalled a specific version of NumPy. Let us also understand it with a few more approaches.
Approach 2 - Using the '--force-reinstall' Command
Another way to Uninstall a specific version, is when their is an existing version. The command '--force-reinstall' is used to first delete the existing version and then install a specific version.
Step 1: Open Terminal or Command Prompt in your OS
Step 2: Use '--force-reinstall' command for uninstallation of existing version and installation of a specific version.
pip install --force-reinstall numpy==1.24.4
Output:

Step 3: Verify the Installation
To Confirm the installation of Specific version use 'pip show numpy'.
Approach 3 - Using Command '--ignore-installed'
The next approach allows us to ignore the existing version. The '--ignore-installed' command helps in ignoring the already installed version or package. It plays a crucial role, while using virtual environment.
pip install --ignore-installed numpy==1.23.5
Output:

Conclusion
In the end, mastering the skills of uninstalling specific versions of NumPy is essential for maintaining the Python environment well structured. The Python developers get updated and can utilize the service in the best way. The concept of versioning, utilizing version specifiers, and uninstallation process empower developer's in library management and python integrated environment management.
Similar Reads
How to Install Specific NPM Version ? Node Package Manager (npm) is the default package manager for Node.js and is crucial for managing JavaScript libraries and frameworks. Sometimes, you may need to install a specific version of npm to ensure compatibility with certain projects, scripts, or tools. This article explains how to install a
2 min read
How to uninstall OpenCV in Windows? OpenCV (Open Source Computer Vision Library) is a powerful open-source computer vision and machine learning software library. While it provides incredible functionality for image processing and analysis, there may come a time when you need to uninstall it from your Windows system. This article will
1 min read
How to uninstall jupyter Popular open-source software called Jupyter Notebook enables you to create and share documents with live code, equations, visuals, and text. Scientific computing and data science both make extensive use of it. However, there may come a time when you need to uninstall Jupyter from your system for var
5 min read
How to uninstall PyCharm? Python is one of the most popular languages referred to by many developers and programmers. Python provides different features which enhance the productivity of application development. To code Python applications, we prefer various IDE (Integrated Development Kit) like VSCode, Spyder, Jupyter, etc.
4 min read
How to uninstall a package using python setup.py? When working with Python, managing packages is a common task. Typically, package managers like pip are used for installing and uninstalling packages. However, in some cases, you might encounter packages installed via a setup.py script, particularly in development or custom environments. This guide w
3 min read
How to check NumPy version installed? In this article, we are going to learn how we can find out which version of NumPy your Python code uses. The version of any project keeps on changing with time as the project gets updated, new features keep being added, and old bugs are removed. Hence, a lot of work keeps on happening on projects es
2 min read