What is the best way of installing django apps and python packages without using pip?
I will be hosting my site on hostgator.com and will not be able to install python packages using pip because I won’t have access to the root account.
Any ideas? Thanks
Do you know about virtualenv? I don’t have any experience with hostgator.com but virtualenv is designed to allow you to create virtual python environments to install basically any Python package you want on a system where you don’t have root access.
You just 1) create a virtual environment, 2) activate it, 3) use pip to install what you need.
After you’ve done that, each time you want to run Python software that uses the packages you’ve installed, just activate the environment and launch your Python script or application. (You can have more than one virtual environment if you need to install different packages, or different versions of packages. All are kept isolated from each other, and from the system-level Python and its site-packages.)
It’s an essential Python tool, and pretty well explained at the above link. Here’s a link to a tutorial that many people find useful.