Delete Easy_Install

So, I installed Python 2.7.1 from the source on the server using stow . In the past, I was inattentive, and I try to maintain organization when working with source settings. So go into the styling. Now I installed easy_install using wget and run the ez_setup.py script. And so, in my infinite wisdom / negligence, I forgot to pack it properly.

  • How to remove ez_setup and start from scratch? I saw a couple of people ask https://stackoverflow.com/a/166329/ and other places on the Internet, but there is no clear answer. Am I just deleting the .egg, .pth file and doing it?

  • Is there any? I adjusted the PATH variable anyway, plus I don’t even have access to this box. I installed in my own installation of Python, already configured with styling.

+4
source share
1 answer

Go to the "site-packages" directory (look at sys.path ) and run:

 rm -rf setuptools-*.egg pkg_resources.py easy_install.py setuptools/ setuptools-*.egg-info/ 

And delete the easy_install binary. I came up with these instructions when writing frequently asked questions for PyPM .

+6
source

Source: https://habr.com/ru/post/1344850/


All Articles