What is the difference between installing a package using pip vs. apt-get?

后端 未结 6 1340
悲&欢浪女
悲&欢浪女 2021-01-31 03:25

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

6条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-31 03:46

    Most answers to this question miss one of the advantages using apt-get:

    apt-get is pre-compiled, which installs much faster than pip.

    To install numpy, matplotlib, pandas, and other scipy-related modules, apt-get only takes seconds; pip can easily consume 10min+.

    If you have root access and don't mind a little outdated versions, apt-get is the fast & worry-free way to go.

提交回复
热议问题