Certbot not working after installing pip packages

Problem:
I started having issue with certbot when I installed some pip packages

sudo yum update && sudo yum -y upgrade
sudo yum install python-pip
pip install certbot_dns_route53==0.11.1

My domain is: *.lab.nirmata.co

I ran this command:
certbot --version

It produced this output:
Traceback (most recent call last):
File "/usr/bin/certbot", line 5, in
from pkg_resources import load_entry_point
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 3007, in
working_set.require(requires)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 728, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 626, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: requests>=2.6.0

My web server is (include version):
nginx/1.20.1

The operating system my web server runs on is (include version):
PRETTY_NAME="CentOS Linux 7 (Core)"

My hosting provider, if applicable, is:

I can login to a root shell on my machine (yes or no, or I don't know):
yes

I'm using a control panel to manage my site (no, or provide the name and version of the control panel):

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):

If you want to install Certbot using pip, follow these instructions.

Installing Python packages with pip outside of a Python virtual environment carries a significant risk of breaking your system.

7 Likes

Thanks @_az Issue was resolved after installing the certbot

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.