How to install python-mapscript in a virtualenv?

المشرف العام

Administrator
طاقم الإدارة
I am on a django project where I want to use the python implementation of the mapserver mapscript library. I was able to install mapserver and python-mapscript from source.

However, due to the project setup I am forced to run django in a virtualenv that does not allow site-packages in my virtual environment.

Since mapscript is installed as a global site-package my django app can't see the mapscript installation. When I try to install mapscript through pip install mapscript I get an error 'mapserver.h' file not found.

So how can I install python-mapscript in my virtual environment?

I thought of copying the installed egg into my virtual environment, but not sure if that is possible.



أكثر...
 
أعلى