About a .python language
Python is a computer programming language. It is a dynamic, object-oriented scripting language that was originally designed for writing automated scripts (shell), constantly updated with the addition of new features and language versions, is used more and more independent, large-scale projects development.
python analysis:
1.python most important functions: reptiles, large data artificial intelligence, automated operation and maintenance / test
development efficiency 2.python, concise and easy development language
drawback is that the efficiency of slow 3.python
4. Compile need the configure
5.python need the zlib library, zlib-devel development kits with
6. If you do not use readline installed around key garbled
7. python is currently used by community Edition
8. compile trilogy config, the make, the make install
9.bin explanation is
to write the absolute path 10. when doing a soft link
11 own computers default python 2.7
II: Installation python3.6
Installation of simple steps:
安装平台:Linux
官网下载python安装包
解压python安装包
安装编译过程需要的依赖性:gcc,zlib,zlib-devel,openssl-devel,readline,readline-devel
yum install gcc zlib zlib-devel openssl-devel readline readline-devel -y
进入解压的安装包进行编译
./configure --prefix=/usr/local/python --with-ssl
安装:make && make install
做软链接:
ln -s /usr/local/python/bin/python3.6 /usr/local/bin/
ln -s /usr/local/python/bin/pip3.6 /usr/local/bin
测试是否安装成功
python3.6
To prevent problems, we first installed in the virtual machine python, python package is then installed by copying the real machine, I use ssh to connect virtual machines to operate:
This step is slightly longer :
the installation is complete, at this time does not appear python3.6 is not done because of the soft connection
default is python2.7
python3.6
to python3.6 can also be used in the real host, it will be installed inside the virtual machine the python bag cleaning up, based on the real machine in the virtual machine python3.6 link
desktop15 is a virtual machine
foundation15 is a real machine
at this time to get out python3.6
will link to /usr/local/python/bin/python3.6 under / usr / local / bin / directory, so you can use python3.6 command (if you do not, you can use absolute paths using python3.6 this command, the reason for this is to be different in different paths users python3.6 path may be used)
Three .pycharm installation
tar zxf pycharm-community-2018.3.tar.gz
Note: in what capacity landing linux system, install it in what capacity, or else installed inside the Chinese input method may not take
cd /mnt/python/pycharm-community-2018.3/bin
ls
./pycharm.sh 执行脚本安装
Next comes the following interfaces:
Less two pictures, first check the protocol, there's really nothing
Second: If you have previously had a python installation, you need to import some previous works, then select Send Usage Statistics, if not installed, select Do not send
Next select the style:
I'm just here to show you, I choose to go its own operating modify Once created, the next will enter the following interface:
Now go to python2.7 revised to 3.6:
Click File-> Settings-> Project: meng-> Project Interpreter, will find a python version 2.7
The first:
The second:
Ok found can choose
to modify font:
Change the font size of the python, in the IDE Click File-> Settings-> Editor-> Font-> Size change
order will be automatically generated comment tags in each script in python, in turn IDE click File-> Settings-> Editor-> File and Code Templates-> Python Script and writes the following
"""
# _*_coding:utf-8 _*_
Name:${NAME}.py
Date:${DATE}
Author:meng-mm
Connect:[email protected]
Desc:
"""
Create a python file you can be seen
If you want to delete pycharm
pycharm usage:
- 修改python解释器的位置
- 如何快速创建文件(alt + insert)
- 格式化python代码,使风格好看(crtl + alt + l)
- 如何撤销代码的修改(ctrl + z)
- 如何取消撤销的代码(ctrl + shift + z)
- 快速重命名(shift + f6)
- 快速注释代码(ctrl + /)
- 快速取消注释代码(ctrl + /)
- 快速删除一行代码(ctrl + x)
- 快速复制一行代码(ctrl + d)
IV. Installation ipython
To install this in networking situations:
If you do not want to use an absolute path to operate ipython, you can make a soft link
ln -s /usr/local/python/bin/ipython /usr/local/bin/