How to Remove Packages Installed with Python's Easy_Install

How do I remove packages installed with Python's easy_install?

pip, an alternative to setuptools/easy_install, provides an "uninstall" command.

Install pip according to the installation instructions:

$ wget https://bootstrap.pypa.io/get-pip.py
$ python get-pip.py

Then you can use pip uninstall to remove packages installed with easy_install

Unable to uninstall package installed by easy_install

Here is a good answer about it: How do I remove packages installed with Python's easy_install?

I think it is easier to install pip and uninstall this package. Like the link above says, you can remove the package directory that can be easily found in your site-packages Python directory (but I really prefer the first option).

pip uninstall Beaver

How to fully uninstall pip installed with easy_install?

There is no completely automatic uninstall but you can do it in two steps:

easy_install -m pip

This should remove pip from easy-install.pth and print the full path to where pip is installed. Now just manually remove the path that the previous command printed. Or you could just manually edit easy-install.pth and remove the pip sources if you know where they are located.

How to remove python packages

Not only should you be using pip (you'll need to install it), you should also be using virtualenv (you'll need to install that too), to create isolated environments which can have different package configurations.

The only things that should go in your global environment are tools like those, and if necessary, packages that refuse to be installed any other way.

Installing packages on computer in a closed network

I think if you want to install python moldules without internet, since you have them downloaded already, is to first make a requirements.txt file with the following.

setuptools==62.1.0
virtualenv==20.8.1
wheel==0.37.1

I just took the version number from your download files

Then go to the dir that have the requirements.txt
run

pip install -r requirements.txt --no-index --find-links --find-links=/path/to/my/local/python-libs

note adding the -r requirements.txt allows you to control the version number of the pip packages.

If this doesn't solve the problem then it might be something wrong with your downloaded binaries, try downloading them again but this time use the requirements.txt

pip download -r requirements.txt -d binaries

This will download the binaries and the versions requested from the requirements.txt into a folder called binaries

Then just try the first command again on your offline machine once you moved the new binaries to the required folder (/path/to/my/local/python-libs) .



Related Topics



Leave a reply



Submit