Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

Python: pkg_resources module error

📅 2012-Jun-27 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ python, setuptools ⬩ 📚 Archive

Problem

Run ipython3.exe and it quits with this error: ImportError: No module named pkg_resources

Solution

pkg_resources is a module that ships with the setuptools package. setuptools has been abandoned now, but a fork of it named distribute provides this module. So, install distribute, described here, and this error will be gone.

Tried with: ipython 0.12.1, Python 3.2 64-bit and Windows 7 64-bit


© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 @codeyarns@hachyderm.io📧