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
Numpy Sum Elements in Array Based on Its Value
How to Find Numeric Columns in Pandas
Binary Representation of Float in Python (Bits Not Hex)
How to Make a For-Loop Pyramid More Concise in Python
Python Regex Match or Operator
How to Use 'Else' in a List Comprehension
Capture Keyboardinterrupt in Python Without Try-Except
Python Equivalent of Setinterval()
How to Load a Module from Code in a String
How to Run Python Scripts Using Gimpfu from Command Line
Multiple Variables in a 'With' Statement
Jupyter Notebook with Python 3.8 - Notimplementederror
Cleanest Way to Get Last Item from Python Iterator
Making a Countdown Timer with Python and Tkinter
Heatmap in Matplotlib with Pcolor
Decorating Class Methods - How to Pass the Instance to the Decorator