Python Language Basic grammar note <note1~ Library installation and tool installation >

Source: Internet
Author: User

Python is a simple, easy-to-start programming language that is easy to install and build. Python2 is preinstalled on most of the release Linux versions, and some of the python3 are preinstalled, and you need to see if Python is installed on Linux, just

Command line Enter 1 python-v or 1 python3-v to view the Python version.

Because I am using Linux, the following Linux commands are used, and the installation on Windows is very simple.

In Linux Debian system can use APT package management tool 1 sudo apt-get install python installation Python2

or 1 sudo apt-get install Python3 to mount the Python3,

Very convenient, is also my most recommended method, to avoid the installation of the source of various errors.

The PIP is installed by default in later versions of python3.4 and can be installed using the 1 sudo apt-get install pip if the command line cannot use PIP. The installation steps are very simple, as long as the computer is networked.

Once the above steps are complete we will be able to build our factory one step at a time, and Pip is very simple as the official Python-Recommended library management tool. Enter 1 sudo pip install directly on the command line {library name} installation library, pip execution requires administrator privileges, so add sudo before the command.

When beginning to learn programming needs a suitable tool, on Linux recommended Vim,atom and other editors, Baidu has a lot of recommended editor, choose their own suitable to like, vim if need to highlight and prompt need

Self-configuring Vim editor, of course, the editor may be advanced and skilled after the partner, in the beginning can choose Ipython,python shell interface, etc., personally recommend beginners to use Ipython, interactive interface and

Python Shell is similar, but there are field hints, keyword highlighting. Beginners try not to use auto-completion, a self-knock, progress quickly.

Ipython can be installed directly with the 1 sudo apt-get install Ipython , when using the command line directly type Ipython

Of course, an IDE is also a good tool, generally use pycharm, friendly interface, style can be paired with, so very popular. The Spyder is also a good choice.

Pycharm can be used in Linux directly, because Pycharm's package is compiled bytecode, no need to install,

After downloading the installation package on JetBrains's official website, move to the folder you want to install, archive with the Tar tool, run/bin/pycharm.sh after completion, and then fix it in the dock to use it later in the dock area.

In fact, not only these tools, you may need a forever on-call browser to solve the difficulties encountered.

Python Language Basic grammar note <note1~ Library installation and tool installation >

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.