Skip to main content

File "./setup.py", line 4, in from setuptools import setup ModuleNotFoundError: No module named 'setuptools'

Traceback (most recent call last):
  File "./setup.py", line 4, in <module>
    from setuptools import setup
ModuleNotFoundError: No module named 'setuptools'


FIX-

Distribute has been merged with setuptools 0.7, so just get setuptools for both Python 2.7 and 3.x
To install this on Debian:
sudo apt-get install python-setuptools
For Python 3.x
sudo apt-get install python3-setuptools
 
 
 
If you have Python 2 >=2.7.9 or Python 3 >=3.4 installed from python.org, you will already have pip and setuptools, but will need to upgrade to the latest version:
On Linux or OS X:
pip install -U pip setuptools 
On Windows:
python -m pip install -U pip setuptools