pkg_resources.DistributionNotFound: The ‘chardet’ distribution was not found and is required by acme

While trying to use certbot, and if you face the error:

pkg_resources.DistributionNotFound: The 'chardet' distribution was not found and is required by acme

This means that you need to install chardet, which can be done by issuing:

sudo pip3 install chardet

If you are using macOS, make sure that pip3 is the one of python3.9, so if you are using macports issue:

sudo port install py39-pip
sudo port select --set pip3 pip39

--

--

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