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

后端 未结 6 1350
悲&欢浪女
悲&欢浪女 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条回答
  •  旧时难觅i
    2021-01-31 03:45

    You probably already know the benefits of apt-get. Automatic update notifications, other apt-installed packages that need those tools know they're installed, etc.

    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.

    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.

提交回复
热议问题