Jupyter Notebook安装及基本使用

Jupyter Notebook安装及基本使用

目录

方式一:Anaconda直接安装

安装Anaconda

下载地址,输入邮箱,Windows下载

开始安装

启动Anaconda

直接启动Anaconda自带的jupyter

方式二:pip命令安装

安装

bash 复制代码
pip install notebook

检查是否安装成功

bash 复制代码
jupyter --version

本地直接启动

bash 复制代码
python -m jupyter notebook

环境中启动(以pycharm的虚拟环境为例)

bash 复制代码
jupyter notebook

Jupyter使用虚拟环境

在pycharm中只要配置了虚拟环境那jupyter就会直接使用项目当前虚拟环境中的python解释器

如果遇到jupyter notebook后台运行错误可以尝试更换虚拟环境

先退出当前环境

bash 复制代码
deactivate

pycharm更换当前虚拟环境(这里用的Anaconda的python环境)

终端前面括号有当前虚拟环境名及更换成功

相关推荐
用户8356290780515 小时前
使用 C# 在 Excel 中创建数据透视表
后端·python
码路飞8 小时前
FastMCP 实战:一个 .py 文件,给 Claude Code 装上 3 个超实用工具
python·ai编程·mcp
dev派10 小时前
AI Agent 系统中的常用 Workflow 模式(2) Evaluator-Optimizer模式
python·langchain
前端付豪12 小时前
AI 数学辅导老师项目构想和初始化
前端·后端·python
用户03321266636712 小时前
将 PDF 文档转换为图片【Python 教程】
python
悟空爬虫13 小时前
UV实战教程,我啥要从Anaconda切换到uv来管理包?
python
dev派13 小时前
AI Agent 系统中的常用 Workflow 模式(1)
python·langchain
明月_清风15 小时前
从“能用”到“专业”:构建生产级装饰器与三层逻辑拆解
后端·python
曲幽1 天前
数据库实战:FastAPI + SQLAlchemy 2.0 + Alembic 从零搭建,踩坑实录
python·fastapi·web·sqlalchemy·db·asyncio·alembic
用户8356290780511 天前
Python 实现 PowerPoint 形状动画设置
后端·python