I always recommend installing Python package with pip, because some OS package managers do packages customizations, and it can either break or change package's behavior. In production, you may go with Pypi, but you will soon learn that you can always rely on what is in the package manager. You should be aware that what makes it in the package manager undergoes some integration testing, while what is in Pypi is untested. If you have root access and don't mind a little outdated versions, apt-get is the fast & worry-free way to go. ![]() To install numpy, matplotlib, pandas, and other scipy-related modules, apt-get only takes seconds pip can easily consume 10min+. Most answers to this question miss one of the advantages using apt-get:Īpt-get is pre-compiled, which installs much faster than pip. If you don't need any of the features pip gives you, and you don't routinely have to install other Python packages which aren't available over APT, use the APT versions. ![]() With pip, you know you're getting the latest version at the time you install it, you can install to a non-default version of Python, and you can install to a virtualenv. Automatic update notifications, other apt-installed packages that need those tools know they're installed, etc. You probably already know the benefits of apt-get.
0 Comments
Leave a Reply. |