How Do You Troubleshoot the Python Message “ImportError: No module named setuptools”?

Problem scenario
You try to run sudo python build but you encounter a problem. You get a message that says "ImportError: No module named setuptools". What should you do?

If you are running Debian/Ubuntu Linux, run this: sudo apt-get -y install python-setuptools

If you are running CentOS/RedHat/Fedora Linux, run this: sudo yum -y install python-setuptools

Leave a comment

Your email address will not be published. Required fields are marked *