I want to use virtualenv by default (without site packages).
But some modules are hard to install in virtualenv (e.g. gtk). With βhardβ, I mean that you have to have a lot of c-header files and you need to collect a lot of material.
I know that I can solve this without installing these packages using pip, but create symbolic links to make some modules accessible from the global site packages directory.
But is this the right direction?
Is there a way to create symbolic links using pip or virtualenv?
Update
In 2013, I needed modules like psycopg2, gtk, python-ldap and others that are installed on my Linux server via rpm / dpkg in virtualenv.
Simling or other workarounds made things more complicated, not simpler. We use this option today (2017)
- system-site-packages
Give your virtual environment access to global site packages.
source share