I\'m trying to deploy a Django site on an Ubuntu machine. I need to install Psycopg2 and PIL but it seems that I\'m able to install them using either apt-get or using pip. Is th
Which one should you use: Both apt-get and pip are mature package managers which automatically install any other package dependency while installing. You may use anyone as you like. However, if you need to install a particular version of python-package, or install the package in a virtualenv, or install a package which is only hosted on PyPI; only pip would help you solve that issue. Otherwise, if you don't mind installing the packages in system-wide location it doesn't really matter whether you use apt-get or pip.