欢迎光临散文网 会员登陆 & 注册

Python 及 PyCharm 的安装 2023.8

2023-08-30 15:26 作者:小喾苦  | 我要投稿

仅适用于 Windows 系统!

视频教程:

安装 Python

1. 进入 Python 官网 https://www.python.org/,点击 DownloadsWindows

Python 官网

2. 选择合适的版本下载,一般是最新版的 Download Windows installer (64-bit)

Python 下载选择

3. 运行安装包,勾选 Add python.exe to PATH,点击 Install Now

Python 安装


安装 PyCharm

1. 访问 JetBrains 官网 PyCharm 下载页面:https://www.jetbrains.com/zh-cn/pycharm/download/ 下载 PyCharm Community Edition(社区版) 安装程序。

PyCharm 社区版下载

2. 启动安装程序,点击 Next >

PyCharm 安装1

3. 选择安装位置(可选),点击 Next >

PyCharm 安装2

4.  根据需要,可勾选 Creat Desktop Shortcut → PyCharm Community Edition(创建桌面快捷方式)Add "Open Folder as Project"(增加“使用 PyCharm 打开项目右键菜单”),点击 Next >

PyCharm 安装3

5. 点击 Next >

PyCharm 安装4

6. 点击 Finish 完成 PyCharm 安装

PyCharm 安装5

Hi, PyCharm

使用 PyCharm 运行 “Hi, PyCharm”

1. 第一次打开 PyCharm,勾选 I confirm that I have read and accept the terms of this User Agreement(我确认我已阅读并接受本用户协议的条款),点击 Continue(继续)。之后的页面下面的两个按钮随便点一个。

PyCharm 使用1
PyCharm 使用2

2. 点击 New Project(新建项目)

PyCharm 使用3

3. 可在 Location(位置) 中更改项目名称、保存路径。

添加本地解释器:Previously configured interpreter(先前配置的 Python 解释器)Add Interpreter(添加解释器)Add Local Interpreter(添加本地解释器)System Interpreter(系统解释器) → 在 Interpreter(解释器) 中选择本地安装的 Python → OK(确定)

Create(创建)

PyCharm 使用4
PyCharm 使用5

4. 单击右上方绿色小三角 Run 'main'(运行 'main'),下方显示输出 Hi, PyCharm

PyCharm 使用6

PyCharm 汉化

1. 随便打开或新建一个项目,找到 File(文件)Setting...(设置...)

PyCharm 汉化1

2. Plugins(插件) → Marketplace → 在搜索框中输入 Chinese → 找到 Chinese (Simplified) Language Pack / 中文语言包 → 点击 Install(安装)

等下载安装完成后点击 Restart IDE(重启 IDE),完成汉化

PyCharm 汉化2

2023.8 by 小喾苦

Python 及 PyCharm 的安装 2023.8的评论 (共 条)

分享到微博请遵守国家法律