jupyter本地配置

1 jupyter启动

在相关文件夹,启动命令行,在命令行执行

bash 复制代码
jupyter lab

即可

将ipynb文件转换为python文件
bash 复制代码
jupyter nbconvert --to script your_notebook.ipynb

会在同一个文件夹下产生同名的your_notebook.py文件

错误

(1)错误:# jupyter notebook: "The kernel appears to have died. It will restart automatically."

安装版本的问题

bash 复制代码
- **pip install -U numpy**(好一部分朋友表示这个有用)
- **conda install nomkl**(少部分朋友表示这个有用)
- **conda update anaconda/ mkl**(一部分朋友表示这个有用)

https://blog.nowcoder.net/n/37afb8eba261472593e5b93d42e18a95

(2) # A module that was compiled using NumPy 1.x cannot be run in NumPy 2.0.0 as it may crash. To support

bash 复制代码
pip install "numpy<2"
相关推荐
曲幽4 小时前
数据库实战:FastAPI + SQLAlchemy 2.0 + Alembic 从零搭建,踩坑实录
python·fastapi·web·sqlalchemy·db·asyncio·alembic
用户8356290780519 小时前
Python 实现 PowerPoint 形状动画设置
后端·python
ponponon10 小时前
时代的眼泪,nameko 和 eventlet 停止维护后的项目自救,升级和替代之路
python
Flittly10 小时前
【从零手写 ClaudeCode:learn-claude-code 项目实战笔记】(5)Skills (技能加载)
python·agent
敏编程11 小时前
一天一个Python库:pyarrow - 大规模数据处理的利器
python
Flittly12 小时前
【从零手写 ClaudeCode:learn-claude-code 项目实战笔记】(4)Subagents (子智能体)
python·agent
明月_清风19 小时前
Python 装饰器前传:如果不懂“闭包”,你只是在复刻代码
后端·python
明月_清风19 小时前
打破“死亡环联”:深挖 Python 分代回收与垃圾回收(GC)机制
后端·python
ZhengEnCi2 天前
08c. 检索算法与策略-混合检索
后端·python·算法
明月_清风2 天前
Python 内存手术刀:sys.getrefcount 与引用计数的生死时速
后端·python