How can I solve this problem with Python?

After installation of Ninja IDE for development Python applications I type this in prompt


sudo ninja-ide

But I get this error

Traceback (most recent call last):
File “/usr/bin/ninja-ide”, line 5, in <module>
from pkg_resources import load_entry_point
ImportError: No module named pkg_resources

I was looking for any solution on internet but I didn’t found any solution.

Can someone help me please?

(Sorry for my bad English)

What does: python -V say?

Try installing python-setuptools if you use python 2.7, or python3-setuptools if you use python3. Alternatively install the python or python3 devel package.

Also do you have a specific need to run it with sudo? ninja-ide should be run as your normal user.

Exactly the problem it was I haven’t install python-setuptools (my Python version is 2.7.8). Thanks to your help I can solve my problem. Thank you Miuku! :smiley: