写在开头:本文非原创,为跟随爬虫学习打卡第一天-jupyter安装配置-CSDN社区打卡活动,原文(100条消息) 手把手教你Anaconda与jupyter安装配置与使用_python菜鸟-CSDN博客
https://chuanchuan.blog.csdn.net/article/details/120634869
1.Anaconda安装
下载安装包
https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/
选择与自己系统适配的最新版本
下载完成后右键管理员身份运行,依步骤进行安装(需要注意的是要勾选添加环境变量选项)
安装完毕后不会自动生成快捷方式,可在开始菜单中找到,自己放置快捷方式即可
2.jupyter安装配置
右键管理员运行后
自动跳转
3.使用jupyter
1)检测是否安装成功
cmd输入python查看anaconda内置python版本是否为3.8,输入exit()退出
输入conda --version查看版本
2)创建项目
如图选择后
可修改项目名称
3)运行python代码
测试代码
print("Hello World")
点击run运行
输出结果
4)快捷键
Enter : 转入编辑模式
Shift-Enter : 运行本单元,选中下个单元
Ctrl-Enter : 运行本单元
Alt-Enter : 运行本单元,在其下插入新单元
Y : 单元转入代码状态
M :单元转入markdown状态
R : 单元转入raw状态
Tab : 代码补全或缩进
Shift-Tab : 提示
Ctrl-] : 缩进
Ctrl-[ : 解除缩进
Ctrl-A : 全选
Ctrl-Z : 复原
Esc : 进入命令模式
Ctrl-M : 进入命令模式
5)添加镜像源
#添加镜像源
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/pro
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
#显示检索路径
conda config --set show_channel_urls yes
#显示镜像通道
conda config --show channels
6)pycharm安装jupyter
在terminal执行
pip install jupyter
7)pycharm运行jupyter notebook
在terminal执行
jupyter notebook
第一天over