How to share libraries between virtual environments and/or python installation

Question:

There is 2 situation:

1) I was trying to install pygtk in my virtual environment. py2cairo caused errors so i couldn’t install. Then i linked pygtk and py2cairo in my python installation to my virtual enviroment as offered in here >> Python package installed globally, but not in a virtualenv (PyGTK)

2) I have many virtual environments for my django applications in my server. All have common django package in same version in nearly all my virtual enviroments. And so in every virtual environment there is a django copy again and again.

For these 2 situation linking could work as charm but !

Question: i still cant find any solution how to make pip to see these packages.

PS: Or any better approach for this problem?

Asked By: obayhan

||

Answers:

I think that virtualenv created with --system-site-packages option will do the job. Docs here.

Answered By: andrzej3393
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.