python学习笔记1

一、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

七、云端环境

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值