The use of PIP and Pip in different versions of Python under Ubuntu

Source: Internet
Author: User

Since the Ubuntu system comes with python2.7 (default) and python3.4, you do not need to install Python yourself.

You can use Python-v and python3-v to view the version of Python that is installed.

Ubuntu does not have PIP installed by default in different versions of Python, so you need to manually install PIP yourself.

To install PIP in different versions, you can use the command:

sudo apt-get install Python-pip

sudo apt-get install Python3-pip

After the installation is complete, you can use Pip-v and pip3-v to check the PIP version.

When installing additional libraries using PIP, the default Python version can be used directly with Pip install XXXX

Additional Python versions can use python3-m pip install xxxx or PIP3 install xxxx

The use of PIP and Pip in different versions of Python under Ubuntu

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.