type
status
date
slug
summary
tags
category
icon
password

一、Anaconda

1.下载安装

下载anaconda
可选应用程序以及简易安装。
配置环境位置以及清华镜像源(修改Anaconda安装路径下 ..condarc文件)

2.创建环境

打开conda命令行—Anaconda Prompt
创建环境
激活环境
安装常用包
notion image
检查

二、VScode

1.下载安装

下载并安装VScode:https://code.visualstudio.com/

2.安装所需扩展

Python、Pylance、Jupyter等
notion image
notion image
Chinese (Simplified) (简体中文) Language Pack for Visual Studio Code—设置VScode为中文,英语不好的人直接装好吗!
notion image
推荐其他好用的插件
Comment Translate—帮你翻译注释以及代码等
Error Lens—可以将错误信息直接显示在代码后
notion image
 
GitHub Copilot—VScode中最好用的AI工具
notion image
 
驼峰翻译助手—快速将中文或英文的名称转换为标准格式
notion image
 
indent-rainbow—将不同层级的代码用不同颜色分隔开,更适用于Python编程
notion image
 
Evondev - Indent Rainbow Palettes—通常和indent-rainbow一起使用,让你拥有五颜六色的分割线
notion image
 
GitHub Theme—换个主题换个心情
notion image
 
Smart Input Pro (Chinese)—自动切换中英文输入法(神仙插件!之前只有idea中有,现在作者发布到VScode了,作者:Would you like to marr….. 我:I do!!!)
notion image

3.选择解释器

点击右下角选择器对环境进行选择
notion image

4.运行测试

notion image
notion image

5.在VScode中使用Jupyter

快捷键—Ctrl+Shift+P
输入create,选择:
notion image
在右上角选择内核,选择创建的ai250601环境,就可以愉快地在VS中使用Jupyter了
notion image

三、PyCharm

1.下载安装

2.添加 Conda 解释器

File → Settings → Project → Python Interpreter → Add
notion image

3.插件

PyCharm已自行捆绑安装所需插件,此处推荐一些自用插件
Github Copilot—编译器中的万金油AI助手
notion image
 
Augment—在除VScode以外的编译器中使用体验好于Copilot
notion image
 
Easy Code Screenshots—让你的代码截图更美观,示例如下
notion image
 
由于不常使用PyCharm,便不过多装饰此编译器。
Day4-61.Python-基础变量类型之字符串和数字类型
Loading...