Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

No setuptools module error

📅 2017-Oct-12 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ error, pip, python, setuptools ⬩ 📚 Archive

Problem

Installing a package with Pip on a new computer gave this error:

ImportError: No module named 'setuptools'

Solution

For Python2:

$ sudo apt install python-setuptools

For Python3:

$ sudo apt install python3-setuptools

Tried with: Ubuntu 16.04