6

I've installed ujson using command pip install ujson and when I've tried to run my python project it returns ImportError: No module named ujson

  • OS version: Red Hat Enterprise Linux Server release 7.2 (Maipo)
  • Python version: Python 2.7.6
  • pip list: ujson (1.35)

Any help please?

Amjad Omari
  • 1,104
  • 3
  • 15
  • 40

1 Answers1

4

The problem was that the PYTHONPATH variable is empty, and when I added the path to the variable it works.

export PYTHONPATH=$PYTHONPATH:/usr/lib64/python2.7/site-packages
Amjad Omari
  • 1,104
  • 3
  • 15
  • 40