Kiran Katkam
Sep 4, 2018 · 1 min read
-pip uninstall requests throws the following error. This problem still persists on CentOS7.Error: Cannot uninstall ‘requests’. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

However, I have only re-installed above three packages but no luck with certbot — apche.

Traceback (most recent call last):

File “/bin/certbot”, line 9, in <module>

load_entry_point(‘certbot==0.26.1’, ‘console_scripts’, ‘certbot’)()

File “/usr/lib/python2.7/site-packages/pkg_resources.py”, line 378, in load_entry_point

return get_distribution(dist).load_entry_point(group, name)

File “/usr/lib/python2.7/site-packages/pkg_resources.py”, line 2566, in load_entry_point

return ep.load()

File “/usr/lib/python2.7/site-packages/pkg_resources.py”, line 2260, in load

entry = __import__(self.module_name, globals(),globals(), [‘__name__’])

File “/usr/lib/python2.7/site-packages/certbot/main.py”, line 21, in <module>

from certbot import client

File “/usr/lib/python2.7/site-packages/certbot/client.py”, line 16, in <module>

from acme import client as acme_client

File “/usr/lib/python2.7/site-packages/acme/client.py”, line 36, in <module>

requests.packages.urllib3.contrib.pyopenssl.inject_into_urllib3() # type: ignore

File “/root/.local/lib/python2.7/site-packages/urllib3/contrib/pyopenssl.py”, line 118, in inject_into_urllib3

_validate_dependencies_met()

File “/root/.local/lib/python2.7/site-packages/urllib3/contrib/pyopenssl.py”, line 153, in _validate_dependencies_met

raise ImportError(“‘pyOpenSSL’ module missing required functionality. “

ImportError: ‘pyOpenSSL’ module missing required functionality. Try upgrading to v0.14 or newer.

Kiran Katkam

Written by

DevOps Engineer

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade