![576ebf514478fd2a714907c15beb2b20.png](https://img-blog.csdnimg.cn/img_convert/576ebf514478fd2a714907c15beb2b20.png)
“ 阅读本文大约需要 4 分钟。
”
前言:
PyCharm 是一种 Python IDE ,带有一整套可以帮助用户在使用 Python 语言开发时提高其效率的工具,比如调试、语法高亮、Project 管理、代码跳转、智能提示、自动完成、单元测试、版本控制。此外,该 IDE 提供了一些高级功能,以用于支持 Django 框架下的专业 Web 开发。
到官网下载安装包
Pycharm 官网链接
https://www.jetbrains.com/pycharm/
![d3832dce8ea16ba5af400c0a8d48299a.png](https://img-blog.csdnimg.cn/img_convert/d3832dce8ea16ba5af400c0a8d48299a.png)
点击下载进入下载选择界面:
![90905436cf29a4f4c979c71d0d67b9d6.png](https://img-blog.csdnimg.cn/img_convert/90905436cf29a4f4c979c71d0d67b9d6.png)
在系统选择中选择你的操作系统( Windows 或 Mac 或 Linux )
版本选择:
专业版是
收费的
,社区版是
免费的
。
PyCharm 专业版是功能最丰富的,与社区版相比,PyCharm 专业版增加了
Web 开发、Python We 框架、Python 分析器、远程开发、支持数据库与 SQL
等更多高级功能
社区版就是功能不全的专业版,是用来解决工作问题的。除了一些功能没有以外(例如:Web 开发,Python Web 框架,Python 的探查,远程开发能力,数据库和 SQL支持),其他的功能和专业版是一样的,对于初学者来说,已经足够了。
选择适合自己的版本,点击 Download 后开始下载:
![ce60f9452e783a2a286c001af0c59440.png](https://img-blog.csdnimg.cn/img_convert/ce60f9452e783a2a286c001af0c59440.png)
开始安装
找到下载安装包的保存位置,右键以管理员身份运行。
![f41d018c47ae9ebe22271fabd788d031.png](https://img-blog.csdnimg.cn/img_convert/f41d018c47ae9ebe22271fabd788d031.png)
开始安装,点击 Next,执行下一步。
![92dd97238f852c9974c68615fb59b203.png](https://img-blog.csdnimg.cn/img_convert/92dd97238f852c9974c68615fb59b203.png)
选择安装位置。
![07a2a93a94bf2f944b3921e8bb745299.png](https://img-blog.csdnimg.cn/img_convert/07a2a93a94bf2f944b3921e8bb745299.png)
根据电脑配置和你的个人需求,选择合适的选项、
![fe3ccec5813237b553ef7d4b9ccf9c71.png](https://img-blog.csdnimg.cn/img_convert/fe3ccec5813237b553ef7d4b9ccf9c71.png)
默认下一步:
![0459bf09a888f4ae17ac473c360b43cf.png](https://img-blog.csdnimg.cn/img_convert/0459bf09a888f4ae17ac473c360b43cf.png)
开始安装:
![ef12df957999d12f126951abd2f229af.png](https://img-blog.csdnimg.cn/img_convert/ef12df957999d12f126951abd2f229af.png)
安装完成,根据情况选择是否重启:
启动软件
桌面上会有这个图标,双击打开
![11b4829bef09061e4351aa1ae01c369e.png](https://img-blog.csdnimg.cn/img_convert/11b4829bef09061e4351aa1ae01c369e.png)
注意:有时会出现下面这个窗口:
如果你之前使用过 PyCharm 并有相关的配置文件,则点击第一个选择;如果没有,默认即可
![9ce1051635b993c99b41a2ec0062f1b6.png](https://img-blog.csdnimg.cn/img_convert/9ce1051635b993c99b41a2ec0062f1b6.png)
勾选同意协议,然后下一步
![8f0d033d4b1e5b24f35e6494f91d5e85.png](https://img-blog.csdnimg.cn/img_convert/8f0d033d4b1e5b24f35e6494f91d5e85.png)
根据自身喜好选择合适的主题,以及是否需要跳过其他插件的安装
![1f6e54d793e733de8bde58f7d3b4ac4c.png](https://img-blog.csdnimg.cn/img_convert/1f6e54d793e733de8bde58f7d3b4ac4c.png)
根据插件特色,选择适合自己的插件
![2461e5782905e9e72bc651260b166344.png](https://img-blog.csdnimg.cn/img_convert/2461e5782905e9e72bc651260b166344.png)
开始配置:
![254b0a712aaa3753dfba15c4647c6de4.png](https://img-blog.csdnimg.cn/img_convert/254b0a712aaa3753dfba15c4647c6de4.png)
初始界面:点击 New Project ,创建一个项目。
![16a332e4c245524c3d7577feada71d37.png](https://img-blog.csdnimg.cn/img_convert/16a332e4c245524c3d7577feada71d37.png)
修改项目的创建位置,找到解释器
![7c3033562f3a8d5d22a4778e4f212969.png](https://img-blog.csdnimg.cn/img_convert/7c3033562f3a8d5d22a4778e4f212969.png)
若 New environment using 选项里 Base interpreter 内容为:,则点击 Existing interpreter ,执行下图操作
![c0790e06b2ce06512ce6f4860ceb858f.png](https://img-blog.csdnimg.cn/img_convert/c0790e06b2ce06512ce6f4860ceb858f.png)
在 Python 的安装位置里找到 Python.exe 这个文件
![b8e584d73dee41a6156fbe469b7dcd81.png](https://img-blog.csdnimg.cn/img_convert/b8e584d73dee41a6156fbe469b7dcd81.png)
找到解释器,开始创建项目
![fce96d1ea5a4c30d303ad127a0c8fd68.png](https://img-blog.csdnimg.cn/img_convert/fce96d1ea5a4c30d303ad127a0c8fd68.png)
开始创建:
![11320ca4d54647e96af3b8b1711b8778.png](https://img-blog.csdnimg.cn/img_convert/11320ca4d54647e96af3b8b1711b8778.png)
创建成功!
![ee3c899be8dc25bec541438120ab097b.png](https://img-blog.csdnimg.cn/img_convert/ee3c899be8dc25bec541438120ab097b.png)
第一次运行 Python
新建一个 Python 文件
![fe5f4e1eff7bab193ee09487ba6add42.png](https://img-blog.csdnimg.cn/img_convert/fe5f4e1eff7bab193ee09487ba6add42.png)
输入文件名:
![c37277490c201f80795fd2c552ca9763.png](https://img-blog.csdnimg.cn/img_convert/c37277490c201f80795fd2c552ca9763.png)
输入你的第一行代码,并右键运行
print("hello world")
![fcb43845338cd07a22e41b945fc6b677.png](https://img-blog.csdnimg.cn/img_convert/fcb43845338cd07a22e41b945fc6b677.png)
在控制台看到 hello world,则代码正确运行
![5966bbc7ee6cc8d2a3d922c715f37dee.png](https://img-blog.csdnimg.cn/img_convert/5966bbc7ee6cc8d2a3d922c715f37dee.png)
至此,Pycharm 安装完成!