When using Django to connect to a postgresql database, use python manager.py migrate
to create a database.
django. Core. Exceptions. ImproperlyConfigured: Error loading psycopg2 module: No module named 'psycopg2' code> solution:
apt install psycopg2
if it fails, don't care if apt install libpq-dev
or apt install postgresql-server-dev-x.y
must be installed successfully, one of them PIP install psycopg2
must be installed successfully. Finally, remember to set an access password for the database set in your setting. Py
, otherwise an error will be reported. You can set the access password by referring to the relevant commands here.
Read More:
- Module not founderror: no module named ‘nets.ssd‘
- Module not found error: the solution to the problem of no module named ‘MySQL’
- Unable to call numpy in pychar, module notfounderror: no module named ‘numpy’
- How to Fix gdb error: Failed to import the site module,No module named ‘_sysconfigdata_m’
- Importerror of Django error: no module named**
- Modulenotfounderror: no module named ‘CV2’ – (version problem)
- ModuleNotFoundError: No module named ‘notebook‘
- ModuleNotFoundError: No module named xxx
- ModuleNotFoundError: No module named ‘ahocorasick‘ [100% Work Method]
- ModuleNotFoundError: No module named ‘mmcv._ext
- ModuleNotFoundError: No module named ‘tensorflow_core.estimator‘
- matplotlib error – no module named tkinter
- [Solved] ModuleNotFoundError: No module named ‘win32api’
- ModuleNotFoundError: No module named ‘MySQLdb‘
- No module named numpy error in Python code
- ImportError: No module named indexes.base
- ModuleNotFoundError: No module named ‘tensorboardX‘
- ModuleNotFoundError: No module named ‘numpy.testing.nosetester‘
- No module named sklearn.neighbors_ typedefs
- Python:ImportError: No module named indexes.base