Forums

No module named 'pytils'

Hello! In consol Defaulting to user installation because normal site-packages is not writeable Looking in links: /usr/share/pip-wheels Requirement already satisfied: pytils in /home/LabJournal/.local/lib/python3.9/site-packages (0.4.1) 17:11 ~/LabBook (master)$

But ModuleNotFoundError at / No module named 'pytils' Request Method: GET Request URL: http://www.journallab.ru/ Django Version: 4.0.4 Exception Type: ModuleNotFoundError Exception Value:
No module named 'pytils' Exception Location: /home/LabJournal/LabBook/equipment/views.py, line 24, in <module> Python Executable: /usr/local/bin/uwsgi Python Version: 3.9.5 Python Path:
['/var/www', '.', '', '/var/www', '/usr/local/lib/python39.zip', '/usr/local/lib/python3.9', '/usr/local/lib/python3.9/lib-dynload', '/home/LabJournal/LabBook/venv/lib/python3.9/site-packages', '/home/LabJournal/LabBook'] Server time: Sun, 05 Mar 2023 20:12:23 +0300

What can I do?

I now have installed in needed directory, but why pip install pytil in enother directory?

From the output above, it just looks like you needed to reload your web app after installing the module.