Some things you encounter with Python under Deepin

Source: Internet
Author: User

1. The system comes with python2.7 and python3.5, directly runs Python default is 2.7 version of the

Of course the default version of running Python directly is modifiable, refer to Here

Then you may need a 3.6 version, just enter it directly on the command line.

sudo apt install python3.6

The download here is 3.6.2

You can download versions 2.7 and 3.5 of Python with the same version number 2.7 and 3.5.

If you use it, it's like a command.

python3.6 xx.py

Uninstall is as follows command

sudo apt remove python3.6

Of course, versions 2.7 and 3.5 are carefully uninstalled, as the underlying system may have dependencies

2.pip is a tool to facilitate downloading some Python packages

However, different versions of Python, their pip is the use of each

python2.7 pip installation command: sudo apt install python-pip

python3.5 pip installation command: sudo apt install python3-pip

python3.6 installation is self-bringing PIP

PIP installation Kit for a specific version (3.6 example):

python3.6-m pip Install Somepackage

Specific reference here

Some things you encounter with Python under Deepin

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.