1

When using Pip (6.0.8) to install Django (1.9) and Psycopg2 (2.6.1), Django got installed in the env/lib/python2.7/site-packages folder and Psycopg2 in the env/lib64/python2.7/site-packages folder.

When I'm using command line (eg python manage.py migrate) or >>> import psycopg2, this all works fine. But when Mod_WSGI is running the application it complains that there is no module Psycopg2.

I'm able to work around this issue by adding the lib64 as a python path in my Apache conf file, but I'm pretty sure this is not the best possible way.

Any suggestions for a better solution?

Btw: I noticed by the way that Pip 7.1.2 is installing Django in Lib64 as well iso Lib.

maarten84
  • 11
  • 1

1 Answers1

0

Yes, there is with the use of --install-option. Have a look at the docs

Remi Smirra
  • 2,499
  • 1
  • 14
  • 15