On linux, python installs libs in diffferents places: for example in open suse, when you install it the first time, and you choose python and some third party libraries, and then when you will do setup.py for a library you download, they will be in different locations! http://stackoverflow.com/a/12950101/861487
Le lundi 3 novembre 2014 21:24:17 UTC+1, robert brook a écrit : > > I overlooked mentioning that the path command returned 2 different > locations for the 3 modules. > Not sure why one package got installed in the lib64 path. They were all > installed with the setup.py install command. > > On Monday, November 3, 2014 3:18:06 PM UTC-5, robert brook wrote: >> >> I am building the web application on a linux red hat machine. >> >> I was trying to pull the path for the site packages for the 3 modules >> that I have installed so that I can specify the path in the apache config >> file >> >> Can I specify 2 paths in Apache? >> >> Thanks >> >> >> >> >>> import django >> >> >>> print (django.__path__) >> >> ['*/opt/rh/python33/root/usr/lib/python3.3/site-packages/* >> Django-1.7-py3.3.egg/django'] >> >> >>> import sql_server.pyodbc >> >> >>> print (sql_server.pyodbc.__path__) >> >> ['/opt/rh/python33/root/usr/*lib* >> /python3.3/site-packages/django_pyodbc_azure-1.2.0-py3.3.egg/sql_server/pyodbc'] >> >> >> >> >>> import sqlalchemy >> >> >>> print (sqlalchemy.__path__) >> >> ['/opt/rh/python33/root/usr/*lib64* >> /python3.3/site-packages/SQLAlchemy-0.9.7-py3.3-linux-x86_64.egg/sqlalchemy'] >> >> >>> >> > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1274a3d7-baa7-4dfe-b10d-39e75138eb89%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

