一、Python安装
1.下载地址: https://www.python.org/downloads/release/python-365/
2. Linux系统自带Python2.7,如需安装3.6下载压缩包Python-3.6.5.tgz后进行编译:
(1)安装python之前需安装所需依赖模块
1 yum -y install zlib zlib-devel 2 yum -y install bzip2 bzip2-devel 3 yum -y install ncurses ncurses-devel 4 yum -y install readline readline-devel 5 yum -y install openssl openssl-devel 6 yum -y install openssl-static 7 yum -y install xz lzma xz-devel 8 yum -y install sqlite sqlite-devel 9 yum -y install gdbm gdbm-devel 10 yum -y install tk tk-devel
(2)解压
$ tar -xvzf Python-3.6.5.tgz
(3)配置安装目录
$ cd Python-3.6.5
$ ./configure --prefix=/usr/python
(4)编译
$ make
$ make install
(5)5~10分钟安装完毕检查
$ python --version
3. Windows和MacOS安装包点击下一步即可(需配置环境变量)
4. 起步可熟悉使用IDLE,python的命令行交互环境
5. 推荐使用的IDE工具
sublime_text3
PyCharm
原文:https://www.cnblogs.com/hughes5135/p/8989984.html