Comment: This forum is very hard to follow.
With that said, there’s a weird issue here where once the above issue happens, any time you type ‘pip3’ it results in the error:
root@box:~# pip3
Traceback (most recent call last):
File “/usr/bin/pip3”, line 5, in
from pkg_resources import load_entry_point
File “/usr/local/lib/python3.4/dist-packages/pkg_resources/init.py”, line 70, in
import packaging.version
ImportError: No module named ‘packaging’****
So even using the solutions on Version 0.21 is posted, some commands cannot work since pip3 is broken:
EG: pip3 install pyOpenSSL
this command cannot be run, since pip3 results in the above error.
running: apt-get remove python3-pip and then apt-get install python3-pip does not resolve the issue.
installing pyOpenSSL via apt-get works fine, but I still can’t run ‘mailinabox’ without getting the above error due to pip3:
root@box:~/mailinabox# mailinabox
FAILED: pip3 install email_validator>=1.0.0
Traceback (most recent call last):
File “/usr/bin/pip3”, line 5, in
from pkg_resources import load_entry_point
File “/usr/local/lib/python3.4/dist-packages/pkg_resources/init.py”, line 70, in
import packaging.version
ImportError: No module named ‘packaging’
root@box:~/mailinabox#