I am trying to set up a PostgreSQL database for my django project, which I believe has now done thanks to the answers to my last question Problems setting up a postgreSQL database for a django project . Now I am trying to run the command “python manage.py runningerver” in Terminal to get my local host, but when I run the command, I see this answer ...
Error: No module named psycopg2.extensions
I'm not sure what this means - I tried to download psycopg2, but cannot find a way to download psycopg2 using homebrew. I tried easy_install, pip install and sudo, but all returning errors like this ...
Downloading http://www.psycopg.org/psycopg/tarballs/PSYCOPG-2-4/psycopg2-2.4.5.tar.gz Processing psycopg2-2.4.5.tar.gz Writing /tmp/easy_install-l7Qi62/psycopg2-2.4.5/setup.cfg Running psycopg2-2.4.5/setup.py -q bdist_egg --dist-dir /tmp/easy_install-l7Qi62/psycopg2-2.4.5/egg-dist-tmp-PBP5Ds no previously-included directories found matching 'doc/src/_build' unable to execute gcc-4.0: No such file or directory error: Setup script exited with error: command 'gcc-4.0' failed with exit status 1
How to fix it?
python django postgresql psycopg2
Jess 04 Oct 2018-12-12T00: 00Z
source share