A Beginner Guide to Python Install and Uninstall Library – Python Tutorial

By | September 5, 2019

When we are developing python application, we often need install and uninstall various python libraries. In this tutorial, we will introduce how to install and uninstall python library by pip.

python pip install and uninstall library

Python install library

In python, if you are using python 2.x, you can use:

pip install library_name

If you are using python 3.x, you can use:

pip3 install library_name

However, if you use Anaconda to install python 2.x or python 3.x. If you have activate relevant python version. You can only use pip command.

For example, if you use python 3.5. Activate it and install library pytesseract.

(py3) F:\>pip install pytesseract

Python uninstall library

Like install library, we can uninstall python library with pip.

pip uninstall library_name