If I am working on a shared web server with Python and some other packages like virtualenv already installed. Can I use virtualenv to install some additional packages I need in a specific directory while still using the system wide python and packages or better still can I just install the additional python packages in my own directory and use them for my website without requiring sudo permissions?
Share
You can explicitly include all globally installed packages in your virtualenv with the
--system-site-packagesswitch:or disable global site packages with the
--no-site-packagesswitch instead:The latter is currently the default.
I personally have
lxmlinstalled in my global site packages, so we can use that as a small demonstration: