一、miniconda的安装
下载地址:https://gitee.com/link?target=https%3A%2F%2Fdocs.conda.io%2Fen%2Flatest%2Fminiconda.html安装时均选择默认配置
二、更换镜像源
1、pip换镜像源
校园网联合镜像站:https://help.mirrors.cernet.edu.cn/
阿里巴巴开源镜像站:https://gitee.com/link?target=https%3A%2F%2Fdeveloper.aliyun.com%2Fmirror%2F
2、conda更换镜像源
清华大学开源软件镜像站:https://help.mirrors.cernet.edu.cn/anaconda/
南方科技大学开源软件镜像站:https://help.mirrors.cernet.edu.cn/anaconda-extra/
3、PyPI换镜像源
校园网联合镜像站:https://help.mirrors.cernet.edu.cn/pypi/
三、课程环境搭建
1、创建 Conda 环境
conda create -n p2s python=3.10 # conda 环境创建
2、激活Conda 环境
conda activate p2s # 激活 p2s 环境,不同环境的 Python 包版本不同!
3、删除Conda 环境
conda deactivate # 退出该环境 conda remove -n p2s --all # 删除整个环境
四、Git下载课程资料
Github Repo: https://github.com/datawhalechina/learn-python-the-smart-way-v2
Gitee Repo: https://gitee.com/anine09/learn-python-the-smart-way-v2
命令:
cd C:\Coding\ # 注意 cd 与指定文件夹路径之间有个空格,进入到指定文件夹 git clone https://github.com/datawhalechina/learn-python-the-smart-way-v2 --depth=1 # --depth=1 的作用是只下载最新版本的代码文件
五、Pip安装课程所需第三方库
pip install jupyter # julia python R
在指定文件夹输入:
jupyter lab # 会自动跳转到浏览器
结束学习时使用:
Ctrl + C # 关闭 Jupyter Notebook 服务
六、VSCode 推荐插件清单
- Python
- Jupyter
- Office Viewer(Markdown Editor)
- Black Formatter
- Code Runner
- Chinese (Simplified) (简体中文) Language Pack for Visual Studio Code
七、云端环境
- 百度飞桨 AI Studio https://aistudio.baidu.com/aistudio/index
- Mo(智海平台)https://momodel.cn/workspace
- 阿里天池 PAI DSW https://tianchi.aliyun.com/notebook-ai
- Kaggle https://www.kaggle.com/code
- Google Colab https://colab.research.google.com/
- Sagemaker Studio Lab https://studiolab.sagemaker.aws/