本节内容安装环境:
linux系统发行版Xubuntu
自带python2.7版本
sudo apt-get install python安装python3版本
编辑软件Sublime
安装Linux的发行版,对于一般安装Windows系统电脑设备推荐安装虚拟机,在虚拟机上运行。Xubuntu发行版对于机器性能要求较低。
通常的Linux都自带python解释器,版本可能较低,终端输入python,出现版本号。
Windows安装Anaconda,运行python的结果
(base) C:\Users\admin>python
Python 3.6.7 |Anaconda, Inc.| (default, Oct 28 2018, 19:44:12) [MSC v.1915 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
通过在终端命令行输入sudo apt-get install python
获取python3.0以上的版本。终端输入python3,出现版本号,此时电脑存在两个python版本,不影响后续的使用。
编程软件Sublime的安装,通过sudo apt-get install Sublime
在Linux上安装。Windows直接安装。