工欲善其事必先利其器,Python 学习首先要做得就是配置 Python 环境。配置环境只需要下载 Pycharm 和 Anaconda 两个安装包即可,请跟上我得步伐,一步一步操作。
重要的事情说三遍
零基础 Python 学习路线推荐 : Python 学习目录 >> Python 基础入门
一.Anaconda下载
Anaconda 是 The most popular Python distribution for data science(官网介绍),Anaconda 是一个开源的 Python 发行版本,包含了conda、Python等大量的科学包及其依赖项。同时支持 Linux,Mac,Windows三大平台(以windows为例),Anaconda有两个下载途径:
1.Anaconda 官方下载地址:Anaconda 下载地址 ,根据你机器的操作系统选择不同版本,比如选择Python3版本的Windows 64位的安装包。
2.如果Anaconda官网下载比较慢呢,可以在清华大学开源软件镜像站下载,自行选择版本。
很多小伙伴在刚开始学习的时候很纠结,到底是应该学Python2.x 版本还是 Python3.x 版本,毕竟2.x 和3.x版本还是有区别。个人建议是直接学习3.x版本,因为2.x版本2020将不再更新,那岂不是又要重头开始学3.x,这有点时间还不如多陪陪你的Gay Friend吧。
请根据自己的 Windows 操作系统下载对应的 Anaconda 版本,如果操作系统是64位那么请下载:64-bit Graphical Installer;如果操作系统是32位那么请下载:32-bit Graphical Installer即可。可能有小盆友会问 Anaconda 是个啥玩意?直接开通传送门:Anconda Pycharm Python 区别和联系;
二.Anaconda 安装
选择all User
建议不安装到C盘
勾选 add Aanconda to system PATH 添加到系统环境变量
Anaconda 安装完成
验证 Anaconda 是否安装成功:
由于 Anaconda 安装过程中已经为我们配置好了 Python 环境,直接 cmd 窗口输入 Python , 如果出现如下提示表示 Anaconda 安装成功
Python3.7.0我们就已经安装好了,简单把!
三.PyCharm下载
Pycharm 同时支持 Linux,Mac,Windows三大平台,以windows为例,Pycharm下载地址
根据对应的平台下载 Pycharm
- Professional 是专业版本 ,功能强大,免费试用,文章后面会讲解如何激活;
- Community 是社区版本,免费使用,如果只是个人开发使用,Community版本也完全满足;
- 我们选择 Professional 专业版本,激活方式留到文章末尾讲解;
四.PyCharm安装
不建议安装到系统盘
重启电脑完成Pycharm 安装
五.Pycharm激活
在开始菜单中打开Pycharm,启动Pycharm2020.3.x
选择 Activation Code 激活码方式激活 Pycharm,输入激活码,并选择 Activate 激活即可;激活码如下:
Y005GUAO33-eyJsaWNlbnNlSWQiOiJZMDA1R1VBTzMzIiwibGljZW5zZWVOYW1lIjoiSmF2YeWkp+WSliBKYXZh5aSn5ZKWIiwiYXNzaWduZWVOYW1lIjoiIiwiYXNzaWduZWVFbWFpbCI6IiIsImxpY2Vuc2VSZXN0cmljdGlvbiI6IiIsImNoZWNrQ29uY3VycmVudFVzZSI6ZmFsc2UsInByb2R1Y3RzIjpbeyJjb2RlIjoiREMiLCJwYWlkVXBUbyI6IjIwMjEtMDQtMDEiLCJleHRlbmRlZCI6ZmFsc2V9LHsiY29kZSI6IklJIiwicGFpZFVwVG8iOiIyMDIxLTA0LTAxIiwiZXh0ZW5kZWQiOmZhbHNlfSx7ImNvZGUiOiJEQiIsInBhaWRVcFRvIjoiMjAyMS0wNC0wMSIsImV4dGVuZGVkIjpmYWxzZX0seyJjb2RlIjoiUk0iLCJwYWlkVXBUbyI6IjIwMjEtMDQtMDEiLCJleHRlbmRlZCI6ZmFsc2V9LHsiY29kZSI6IldTIiwicGFpZFVwVG8iOiIyMDIxLTA0LTAxIiwiZXh0ZW5kZWQiOmZhbHNlfSx7ImNvZGUiOiJSU1YiLCJwYWlkVXBUbyI6IjIwMjEtMDQtMDEiLCJleHRlbmRlZCI6dHJ1ZX0seyJjb2RlIjoiUlNVIiwicGFpZFVwVG8iOiIyMDIxLTA0LTAxIiwiZXh0ZW5kZWQiOmZhbHNlfSx7ImNvZGUiOiJQQyIsInBhaWRVcFRvIjoiMjAyMS0wNC0wMSIsImV4dGVuZGVkIjpmYWxzZX0seyJjb2RlIjoiUkMiLCJwYWlkVXBUbyI6IjIwMjEtMDQtMDEiLCJleHRlbmRlZCI6ZmFsc2V9LHsiY29kZSI6IlJEIiwicGFpZFVwVG8iOiIyMDIxLTA0LTAxIiwiZXh0ZW5kZWQiOmZhbHN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P1xH9kmf22jjQ2JiHhQZP7ZDsreRrOeIQ/c4yR8IQvMLfC0WKQqrHu5ZzXTH4NO3CwGWSlTY74kE91zXB5mwWAx1jig+UXYc2w4RkVhy0//lOmVya/PEepuuTTI4+UJwC7qbVlh5zfhj8oTNUXgN0AOc+Q0/WFPl1aw5VV/VrO8FCoB15lFVlpKaQ1Yh+DVU8ke+rt9Th0BCHXe0uZOEmH0nOnH/0onD
如果是无效激活码就会出现这种提示,直接更换其他激活码即可!
整个 Python 开发环境已经完全搭建成功啦,下一步我们开始 Hello World !
暂无评论内容