Setup.py creating problems

You are reading this, means you know installing and uninstalling python packages using pip. You must have even uninstalled a few packages using pip

Python2.7
pip install package
pip uninstall package
Python3.6
pip3.6 install package
pip3.6 uninstall package

Have you verified if the package is uninstalled?

pip list or pip3.6 list in command line help you to see all your packages. You can also view them going to python3.6 (for python3.6) interpreter and File->path browser->/site-packages or if python2.7, head to

Go->Library->Python->2.7->site-packages

Now, in this path, if you don’t find the package you have deleted, that’s all fine, but if you found it in… Yea, if it remains, this is because packages that use setup.py sets up egg-info file. So delete it to uninstall entirely.

This is possible with python2.7

Then, how do you delete egg-info file in python3.6?

Use sudo pip3.6 uninstall package . Note sudo must be used.

.

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store