Proper way to install pip on Ubuntu

2020-05-18 05:35发布

I'm trying to install the latest version of pip (currently 8.1.2) on the official ubuntu/trusty64 Vagrant box. The box comes with Python 2.7.6 and 3.4.3 pre-installed with apt-get.

I read the pip installation doc and it contains the following warning:

Be cautious if you're using a Python install that's managed by your operating system or another package manager. get-pip.py does not coordinate with those tools, and may leave your system in an inconsistent state.

Does that mean I cannot install pip using get-pip.py and I am limited to install an older version of it from apt-get?

If there is a better way of installing it, what would it be?

Thanks

标签: python pip
7条回答
ら.Afraid
2楼-- · 2020-05-18 06:36
  • sudo apt-get update;
  • sudo apt-get install python-pip;

Once the installation is complete, verify the installation by checking the pip version:

  • pip --version;
查看更多
登录 后发表回答