In file included from psycopg/psycopgmodule.c:27:0: I/usr/include/postgresql -I/usr/include/postgresql/9.3/server -c psycopg/psycopgmodule.c -o build/temp.linux-x86_64-2.7/psycopg/psycopgmodule.o -Wdeclaration-after-statement X86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.7.3.2 (dt dec pq3 ext lo64)" -DPG_VERSION_NUM=90320 -DHAVE_LO64=1 -I/usr/include/python2.7 -I. Running setup.py (path:/tmp/pip_build_root/psycopg2/setup.py) egg_info for package psycopg2 Here's the output and install command that caused it: (django_env1) user:/home/projects/sample_project$ sudo pip install psycopg2ĭownloading psycopg2-2.7.3.2.tar.gz (425kB): 425kB downloaded I am very much a linux and django noob, so if this is a duplicate issue, please have mercy on me and leave a comment explaining why you are marking it as a duplicate as you do so. Trouble with psycopg2 in virtualenv python3 for use with Django I tried the solutions suggested in this stack exchange question: I do that, and this point in the instructions, I get a "compilation failed" error. (django_env) $ sudo apt-get install libpq-dev python3-dev ![]() But this adapter have some package dependencies, so first For this, install psycopg2 databaseĪdapter. Now, we need to configure postgreSQL so that it can communicate with our Django application.Set up USB permissions echo 'SUBSYSTEM="usb", ATTR="0d", MODE="0666"' | sudo tee /etc/udev/rules.d/91-odrive.Trying to get a server ready for a django project and I'm running into some issues with setup for postgres. Install python3-usb sudo apt install python3-usb ![]() No matching distribution found for pywin32>=222 (from odrive)” pip3 install odrive Try this however cloning the repository seems to work whereas I had issues where the install was expecting some kind of windows package: “Could not find a version that satisfies the requirement pywin32>=222 (from odrive) (from versions: ) Needed to install Odrive from Pip pip install monotonic -user ![]() here is what i did to revert: python -m pip uninstall pip Don’t upgrade pip!!! If you upgrade to the latest version it breaks!Ĩ.1.1 is the working version on my installation, and I upgraded to version 19 and pip broke.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |