no module named 'kronos' in ubuntu

Discussion in 'Programming/Scripts' started by pavanligue, Oct 28, 2022.

  1. pavanligue

    pavanligue New Member

    I'm using AWS (ubuntu instance) and django.

    In ubuntu, I did sudo pip install django-kronos.

    But, When sudo python3 manage.py runserr --settings=health.settings

    Import Error: No module named 'kronos'

    happens.

    Kronos works well in locals. Why I get the error in ubuntu??
     
  2. pyte

    pyte Well-Known Member HowtoForge Supporter

    Is the pip version correct? The package should be called python3-pip. You can check the pip version with pip --version. It is possible that the version for pip that you are using is python 2 not 3.

    EDIT: You are running the script as root, so the module kronos must be installed in the same context.
    Code:
    sudo pip install kronos
     
    Last edited: Nov 3, 2022

Share This Page