Forums

Defaulting to user installation because normal site-packages is not writeable

Hello! Why if in consol python3 -m pip3 install xlwt or pip install xlwt - answer Defaulting to user installation because normal site-packages is not writeable BUT Requirement already satisfied: xlwt in /usr/local/lib/python3.9/site-packages (1.3.0) BUT ModuleNotFoundError at /CertifiedValueJ/kinematicviscosityvalues/ No module named 'xlwt' Request Method: GET Request URL: https://labjournal.pythonanywhere.com/CertifiedValueJ/kinematicviscosityvalues/ Django Version: 4.0.4 Exception Type: ModuleNotFoundError Exception Value:
No module named 'xlwt' Exception Location: /home/LabJournal/LabJournal/viscosimeters/views.py, line 79, in <module> Python Executable: /usr/local/bin/uwsgi Python Version: 3.9.5

I fix "Defaulting to user installation because normal site-packages is not writeable" BUT still "ModuleNotFoundError" (

We have a help page about installing modules here

Sorry, it do not helps

Make sure you have installed the module into the version of Python/virtualenv that you are using for your web app.

Yes, I installed it manually (pip install -t /path/ appname) and now it works. But why befor they were installed to correct directory automaticaly, and now it changes...

Was your venv not activated?