How can I best clean nonworking pip from system?

Spread the love

I have a system I upgraded several Ubuntu versions, now I seem to have multiple versions of pip:
$ whereis pip3
pip3: /usr/bin/pip3 /usr/local/bin/pip3 /usr/local/bin/pip3.5 /usr/local/bin/pip3.4 /usr/share/man/man1/pip3.1.gz

When I enter “pip3” I get the result:
…Traceback (most recent call last):
File “/usr/local/bin/pip3”, line 5, in <module>
from pkg_resources import load_entry_point
File “/usr/lib/python3/dist-packages/pkg_resources/”, line 3088, in <module>
File “/usr/lib/python3/dist-packages/pkg_resources/”, line 3072, in _call_aside
f(*args, **kwargs)
File “/usr/lib/python3/dist-packages/pkg_resources/”, line 3101, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File “/usr/lib/python3/dist-packages/pkg_resources/”, line 576, in _build_master
return cls._build_from_requirements(__requires__)
File “/usr/lib/python3/dist-packages/pkg_resources/”, line 589, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File “/usr/lib/python3/dist-packages/pkg_resources/”, line 778, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The ‘pip==8.1.1’ distribution was not found and is required by the application

However when I run /usr/bin/pip3 (the one I can see Synaptic shows as the one in the installed python3-pip package) I get no error, a list of arguments to use. So what’s the best way to uninstall all the older pip-references on the system?

X ITM Cloud News


Leave a Reply

Next Post

Ubuntu Studio Controls: How to add and map surround audio channels to a pulse output bridge?

Fri Sep 11 , 2020
Spread the love          I am using Ubuntu Studio 20.04 with JACK through ubuntustudio-controls. I have a surround speaker system and must change the default pulse_out bridge sink from 2-channel stereo to 4-channel. The four channels must be mapped to front-left front-right rear-left rear-right. This does not seem to be an option […]

Cloud Computing – Consultancy – Development – Hosting – APIs – Legacy Systems

X-ITM Technology helps our customers across the entire enterprise technology stack with differentiated industry solutions. We modernize IT, optimize data architectures, and make everything secure, scalable and orchestrated across public, private and hybrid clouds.

This image has an empty alt attribute; its file name is x-itmdc.jpg

The enterprise technology stack includes ITO; Cloud and Security Services; Applications and Industry IP; Data, Analytics and Engineering Services; and Advisory.

Watch an animation of  X-ITM‘s Enterprise Technology Stack

We combine years of experience running mission-critical systems with the latest digital innovations to deliver better business outcomes and new levels of performance, competitiveness and experiences for our customers and their stakeholders.

X-ITM invests in three key drivers of growth: People, Customers and Operational Execution.

The company’s global scale, talent and innovation platforms serve 6,000 private and public-sector clients in 70 countries.

X-ITM’s extensive partner network helps drive collaboration and leverage technology independence. The company has established more than 200 industry-leading global Partner Network relationships, including 15 strategic partners: Amazon Web Services, AT&T, Dell Technologies, Google Cloud, HCL, HP, HPE, IBM, Micro Focus, Microsoft, Oracle, PwC, SAP, ServiceNow and VMware