Python环境搭建
1.Minconda安装
搜索minconda选择清华大学anaconda镜像站
windows选择Minconda3-latest-windows-x86_64.exe下载,按照引导安装
务必勾选“Add Miniconda3 to my PATH environment variable”
创建环境
conda create-n test python=3.10
Q:Fetching package metadata: SSL verification error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)
.SSL verification error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)
.SSL verification error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)
.SSL verification error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)
A:C:\Users\lenovo(用户名)\.condarc 中 https 都改成 http
进入环境
conda activate test
退出环境
conda deactivate
2.VSCode安装
在官网中选择(windows x64)安装包下载,运行后按照引导安装
安装成功后在左侧拓展搜索Chinese语言包和python拓展
3.Jupyter notebook使用
在文件资源管理器中搜索cmd
安装juopyter notebook
pip install jupyter
Q:ERROR: Could not find a version that satisfies the requirement jupter (from versions: none)
ERROR: No matching distribution found for jupter
A:pip install jupyter -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple(换源解决,网络不好导致)
打开jupyter notebook
jupyter notebook
Python 知识
搜索菜鸟教程python Python 基础教程 | 菜鸟教程 (runoob.com)