jupyter汉化、修改默认路径详细讲解

1、配置镜像路径

修改第三方库的下载路径,比如:清华镜像pypi(https://mirrors.tuna.tsinghua.edu.cn/help/pypi/),配置镜像地址。

首先执行 pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple

2、安装模块

安装jupyter notebook:

再执行:pip install jupyter

查看jupyter版本

卸载模块命令:pip uninstall XXX

启动jupyter:

执行:jupyter notebook
如何不能跳转到页面,就复制如下链接,去浏览器打开即可。

3、修改jupyter配置文件

修改jupyter notebook文件默认路径,首先执行 :`jupyter notebook --generate-config`

在C:\Users\Administrator.jupyter目录下用记事本打开jupyter_notebook_config.py文件,修改# c.ServerApp.notebook_dir = '',改到你所需要的路径下

4、汉化jupyter

  • 7.0以上版本 :执行:pip install jupyterlab-language-pack-zh-CN

然后重新进入notebook,进入home页面下的设置(setting),可以把语言改成中文

  • 7.0以下的版本:安装扩展:

pip install jupyter_contrib_nbextensions

jupyter contrib nbextension install --user

汉化: 在环境变量中添加------变量名:LANG,值:zh_CN.UTF8,然后重启即可

相关推荐
一木 之林5 分钟前
AI实战 : Numpy图像处理与深度学习框架
python
c_lb72886 分钟前
零基础选策略工具,先分清三件事
人工智能·python
夜雪一千7 分钟前
Python如何使用XPath定位没有特征的元素?无id、无class通用定位技巧
开发语言·python
weixin_404679319 分钟前
godot + vscode ai开发
ide·vscode·编辑器·游戏引擎·godot
我一定会有钱14 分钟前
vscode system下载安装
ide·vscode·编辑器
流浪00124 分钟前
Python 基础语法(一):常量、变量、输入输出与运算符
开发语言·python
鸿芯微控科技29 分钟前
MFC关断后还有流量怎么办?零流量、阀门泄漏、压差与Python分析
c++·python·mfc·质量流量控制器·关断泄漏·零流量测试
点云-激光雷达-Slam-三维牙齿3 小时前
速度起飞 笔记本电脑6G显卡llama运行Qwen3.6 35BA3B MTP 大模型
人工智能·python·电脑·llama
言乐63 小时前
Python游戏水平测试辅助系统
开发语言·python·游戏·django·pygame
从零开始学习人工智能10 小时前
【踩坑实录】WSL2 解决 onnxruntime\-gpu ImportError: libcudart\.so\.13 无 CUDA13 运行库问题
python