ImportError: No module named cryptography

I found this post Amazon Linux -> ImportError: No module named cryptography.hazmat.bindings.openssl.binding - #4 by xinxilas
that gave the following solution
/opt/ install cryptography interface
In my case I had to use sudo with it.
After this, when I issued certbot-auto --help I got
$ certbot-auto --help
Requesting to rerun /usr/local/bin/certbot-auto with root privileges...
Error: couldn't get currently installed version for /opt/
Traceback (most recent call last):
File "/opt/", line 7, in
from certbot.main import main
File "/opt/", line 2, in
from certbot._internal import main as internal_main
File "/opt/", line 11, in
import zope.component
File "/opt/", line 23, in
from zope.component.interfaces import IComponentArchitecture
File "/opt/", line 21, in
import zope.deferredimport
File "/opt/", line 1, in
from zope.deferredimport.deferredmodule import initialize
File "/opt/", line 18, in
import zope.proxy
ImportError: No module named proxy

I know very little about python so should I just do the same for the proxy module?
sudo /opt/ install proxy

1 Like