Python, ipython, and IDE tool Pycharm installation tutorial in Linux, ipythonpycharm

Source: Internet
Author: User

Python, ipython, and IDE tool Pycharm installation tutorial in Linux, ipythonpycharm

Advantages of python

(1) Simple, elegant, and clear

(2) powerful third-party library module

(3) cross-platform porting

(4) An object-oriented language

Disadvantages of python

(1) The code execution speed is slow. Compared with the C language, the asynchronous concurrency framework of python causes the execution speed to be slow;

(2) python is an open-source programming language and the Code cannot be encrypted;

Python Installation

(1) Visit the python Official Website

(2) generally, the iso image is provided in the Linux operating system and can be directly installed through yum;

[Root @ server ~] # Yum install python-y # install python

[Root @ server ~] # Python-V # view the python version

Python editing tool:

-Python and ipython

-Vim

First python Program

Go to python: python

Exit python: exit () or Ctrl + D

Python script

[Root @ server ~] # Which python # view python

[Root @ server ~] # Mkdir/python/code01-p

Note:

#! /Usr/bin/python indicates that the default Python version of the system is directly referenced;

#! /Usr/bin/envpython indicates that the custom Python version in the environment variables is referenced, which is highly portable;

Question about Chinese encoding ??

Solution: Specify the UTF-8 encoding format.

There are four methods to specify the encoding format:

(1) # coding: UTF-8

(2) # coding = UTF-8

(3) # encoding: UTF-8

(4) # encoding = UTF-8

UTF-8: one English byte storage and three other bytes storage;

Install ipython:

? -Download software from the Internet

Obtain and enter the ipython installation package directory, and install all the packages to solve the dependency problem.

Use ipython

Install the IDE tool Pycharm as follows:
(1) decompress the Pycharm installation package to the/opt directory:

(2) cd/opt/pycharm-2017.2.3/bin

(3) Execute./pycharm. sh

[Root @ fundation86 pycharm] # tar xf pycharm-professional-2017.2.3.tar.gz-C/opt/

[Root @ fundation86 pycharm] # cd/opt/pycharm-2017.2.3/bin/

[Root @ fundation86 bin] #./pycharm. sh

Select the Red Circle and click OK.

Select accept and next

Select the License server to install and enter the Registration Code as follows:

Select All

File Storage path: optional, which can be customized by default

The attack is successful. start using it !!!

NOTE: For the Community version, you can use the above three steps;

The setting information of pycharm is saved in. PyCharmCE2017.1.

If the configuration is broken, you can delete the Directory and reconfigure it.

To uninstall pycharm:

(1) Delete the icon

(2) Delete Configuration

(3) Delete Software

Configure Pycharm parameters:

Open File ---> Settings

Change code font size

Set python code block model

The effect is as follows:

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.