简体   繁体   中英

No module named 'pkg_resources' when certbot -v

I am trying to work with certbot and when I put certbot -v (Or any certbot command) I get this:

Traceback (most recent call last):
  File "/usr/local/bin/certbot", line 6, in <module>
    from pkg_resources import load_entry_point
ModuleNotFoundError: No module named 'pkg_resources'

Ok... I uninstall python. installed python3. I installed setuptools and see it in /usr/local/lib/python3.8/dist-packages

It happened after I updated my ubuntu to 20.04 I tried all the suggestions and nothing works. How can I solve this?

So...what worked for me is actually that:

curl -o- https://raw.githubusercontent.com/vinyll/certbot-install/master/install.sh | bash

Since I have Ubuntu 20.04 certibot is kind of touchy. This command installed python packages properly.

Many thanks

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM