python No module named ujson, while it's already installed

11,829

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
Share:
11,829
Amjad Omari
Author by

Amjad Omari

Senior Android developer at Asal technologies for 5+ years of experience, have a grate knowledge of building and good and robust apps. I have worked on 3 large android apps: LiveEngage mobile app that provides a real time, instant messaging between user and consumers anytime, anywhere, on the go (click here to see the app). Sila App, is a messaging app that comes from the makers of AppMahal! and the user can instantly message his AppMahal friends from one convenient chat app (click here to see the app). Win555b gambling sport app that allows the user to Play and Bet in real time, live sports events all over the world with real quotes, real odds and real-time results (click here to see the app). In addition to multiple small android apps, also I have a strong knowledge of MVP architecture, Dagger2, RxJava(Reactive programming). I have extra knowledge of AWS services Python bottle framework (building Restful APIs). PostqreSQL, and MYSql. Apache jmeter. Git, SVN, Mercurial repositories.

Updated on June 07, 2022

Comments

  • Amjad Omari
    Amjad Omari almost 2 years

    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?