Python (i) Install Python, IPython, Pycharm

Source: Internet
Author: User
Tags exit in

System environment:

Operating system:red Hat Enterprise Linux Server 7.0
Kernel:linux 3.10.0-123.el7.x86_64

First, install Python

1. Introduction

Linux operating system on the general ISO image inside, or visit the official website download: www.python.org

2. Installation

Yum Install Python

To view the Python version:

[Email protected] mnt]# python-v
Python 2.7.5
Enter the python environment: Execute python on the shell command line to enter the Python environment

Exit the Python Environment: Execute exit () in a Python environment or press crtl+d directly to exit

Second, installation Ipython

1. Introduction

The advantage of Ipython relative to Python is that you can press the TAB key to fill commands when you enter Python code

2. Installation

The following RPM packages need to be installed (including the Ipython itself and all dependent packages):

openpgm-5.2.122-2.el7.x86_64.rpm
python-ipython-3.2.1-1.el7.noarch.rpm
python-ipython-console-3.2.1-1.el7.noarch.rpm
python-ipython-gui-3.2.1-1.el7.noarch.rpm
python-jsonschema-2.3.0-1.el7.noarch.rpm
python-mistune-0.5.1-1.el7.x86_64.rpm
python-path-5.2-1.el7.noarch.rpm
python-pip-7.1.0-1.el7.noarch.rpm
python-pygments-1.4-9.el7.noarch.rpm
python-simplegeneric-0.8-7.el7.noarch.rpm
python-zmq-14.3.1-1.el7.x86_64.rpm
zeromq3-3.2.5-1.el7.x86_64.rpm

Enter the Ipython environment: Execute Ipython on the shell command line to enter the Ipython environment

Exit Ipython Environment: Execute exit () or press Crtl+d to exit in the Ipython environment

Third, pycharm installation, uninstall

1. Introduction

Pycharm is a python development tool

2. Installation

To download the community version of the website:


Locate the downloaded installation package and do the following:

Tar XF pycharm-community-2017.1.4.tar.gz-c/opt/#解压安装包到软件安装目录/opt

Cd/opt

MV Pycharm-community-2017.1.4/pycharm #进入/opt Modify package name for easy identification
CD pycharm/bin/
The./pycharm.sh #执行安装脚本, and then the installation is completed graphically

Select whether to pour into the previous configuration, select Not to enter:


Choose to agree:

Tick to open with command line, create shortcut, all users can use, click OK:

Select the Create new project to make a fresh item:


Select project directory:


Enter File-->settings...--editor-->file and Code templates to modify the template for the new Python file (gray text in):


Right-click Pycharmprojects-->new-->python file--> input file name-->python file created successfully, you can see that all new Python files will have a default comment, These comments are what you just configured in the template:


Adjust the interface style: File-->settings...-->appearance & behavior-->appearance--Select the interface style in the Theme drop-down box

Adjust code font Size: File-->settings...-->editor-->font

Open the Ipython command-line emulation interface: View-->tool Windows-->python Console

For more settings, refer to http://blog.csdn.net/pipisorry/article/details/39909057

3. Uninstall

Cd/root #刚才项目文件选择保存在了root下, and also install the software under root, go to the root home directory

RM-RF pycharmprojects/#删除创建的项目, containing the python file you just created

Rm-rf. PYCHARMCE2017.1/#删除pycharm配置信息 (* This is a hidden file)

cd/opt/#进入软件目录

RM-RF pycharm/#删除pycharm软件包


Python (i) Install Python, IPython, Pycharm

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.