I'm try to open port using firewall-cmd
but I get error ModuleNotFoundError: No module named 'six'
.
I'm try to reinstall six
using easy_install
, pip
, pip3
and pip3.6
but it not work.
os: centos 8
python: 3.6.8
pip 20.1.1
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityfirst of all this issue happen due to python setuptools issue , by mistake or intentionally you upgrade it , and then after upgrade i think you reinstall six module by you or one of the libraries , what happen it will not install it correctly after upgrade in the correct path all you need is to run this command , it will move the six lib file to it's correct path so other modules can find it
cp /usr/local/lib/python3.6/site-packages/six.py /usr/lib/python3.6/site-packages/
From https://bugzilla.redhat.com/show_bug.cgi?id=1663220 :
Force reinstalling the python3-six command did the trick;
$ sudo dnf reinstall python3-six
Worked for me too (AlmaLinux 8 ~= CentOS 8).