Когда я запускаю эту команду для проверки версии certbot:
certbot -V
Выдает эту ошибку:
Traceback (most recent call last):
File "/usr/bin/certbot", line 9, in <module>
load_entry_point('certbot==0.31.0', 'console_scripts', 'certbot')()
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 570, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2687, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2341, in load
return self.resolve()
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2347, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/lib/python2.7/site-packages/certbot/main.py", line 18, in <module>
from certbot import account
File "/usr/lib/python2.7/site-packages/certbot/account.py", line 21, in <module>
from certbot import constants
File "/usr/lib/python2.7/site-packages/certbot/constants.py", line 17, in <module>
os.path.join(compat.get_default_folder('config'), 'cli.ini'),
AttributeError: 'module' object has no attribute 'get_default_folder'
Версия Python: 2.7.5
Версия CentOS: CentOS Linux выпуск 7.6.1810 (ядро)
Где что-то не так? Я использую эту команду для установки:
yum install certbot -y