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??
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