工欲善其事必先利其器,Python安装教程
2019-09-25 本文已影响0人
奇遇Python
1、下载python 安装包
登录python官网(https://www.python.org/)下载对应安装包,根据系统(windows、linux、mac)及位数(32位,64位)及相对应选择的版本,不过这里建议选择Python3.X
因为Python2.X已经停更,这里演示在windows下64位Python3.6.5的安装

2、安装Python
- 击下载好的安装包,弹出如下界面:

这里要注意的是,将python加入到windows的环境变量中,如果忘记打勾,则需要手工加到环境变量中;

- 进入到下一步后,选择需要安装的组件,然后点击下一步:

- 之后就一步一步确认就好了
3、验证Python是否安装成功

4、这是另外一种安装python的环境anaconda (https://www.anaconda.com/)
指的是一个开源的Python发行版本,其包含了conda、Python等180多个科学包及其依赖项。会安软件就会用。

5、Python IDE推荐(选择一种自己喜欢的安装就可,也可以直接使用ipython(交互式计算系统(python shell)))
- pycharm (http://www.jetbrains.com/pycharm/) 我现在用的是Pycharm
image.png
image.png
- vscode(https://code.visualstudio.com/)
image.png
- jupyter notebook (安装anaconda 已自带)一般做短的量化分析统计的时候用
安装:pip3 install jupyter
运行:jupyter notebook
运行界面如图所示
image.png