Akhet / docs / appendix / no_site_packages.rst

Appendix: --no-site-packages

The --no-site-packages option to virtualenv avoids conflicts between Python packages inside the virtualenv and possibly-incompatible packages installed globally. It's generally recommended for Pyramid. I needed --no-site-packages for Ubuntu 10, which uses certain Zope packages in the OS. zope is a namespace package, and distributions under namespace packages can't be split between multiple site-packages directories. I'm not sure if Ubuntu 11.11 has the same limitation.

The tradeoff is that with --no-site-packages, you have to install your own packages with C extensions (database libraries, PIL, NumPy, etc) rather than relying on the OS packages. Some of these can be difficult to install if they involve C. You may be able to get around this by making a symlink from the virtulenv's site-packages directory to the global package, but it may take some work to make the package happy.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.