Python/python1/Installation.md

13 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 二、Python 的安装 #
因为 Python 是跨平台的,它可以运行在 Windows、Mac 和各种 Linux/Unix 系统上。目前Python 有两个版本,一个是 2.x 版,一个是 3.x版这两个版本是不兼容的。本草根安装的是 3.6.1 版本的。
至于在哪里下载,本草根建议最好直接官网下载啦,随时下载下来的都是最新版本。官网地址:[https://www.python.org/](https://www.python.org/)
本草根是 windows 系统下载完后直接安装不过这里记得勾上Add Python 3.6 to PATH然后点 “Install Now” 即可完成安装。如果没有勾上这个,就必须要自己配置环境变量了,至于如何配置,跟 JAVA 的差不多,具体可以 Google 一下。
![Python安装.png](http://upload-images.jianshu.io/upload_images/2136918-2bf6591f0a12e80b.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
安装完成后,打开命令提示符窗口,敲入 python 后,出现下面的情况,证明 Python 安装成功了。你看到提示符 >>> 就表示我们已经在 Python交互式环境中了可以输入任何 Python 代码,回车后会立刻得到执行结果。
![运行python.png](http://upload-images.jianshu.io/upload_images/2136918-817c22f802e8cfce.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)