pip install jupyterlab-language-pack-zh-CN
安装中文语言包
步骤 1:在虚拟环境中安装 Jupyter
激活虚拟环境
conda activate pycaret_env
conda activate pycaret_env
通过 Conda 安装 Jupyter
conda install jupyter
conda install jupyter
若 Conda 安装失败,改用
pip
:pip install jupyter notebook
pip install jupyter notebook
步骤 2:验证安装
检查 Jupyter 版本
jupyter --version
jupyter --version
若显示版本号(如
jupyter core: 4.12.0
),表明安装成功68。
尝试启动 Notebook
jupyter notebook
jupyter notebook
步骤 3:处理安装后仍报错的情况
修复环境变量
退出当前终端,重新激活虚拟环境后再次尝试启动。
更新工具链
pip install --upgrade pip setuptools wheel
pip install --upgrade pip setuptools wheel
重新安装 Jupyter:
pip install --force-reinstall jupyter notebook
pip install --force-reinstall jupyter notebook
三、其他建议
全局安装 Jupyter(非推荐)
若虚拟环境安装持续失败,可先在全局环境中安装 Jupyter:pip install jupyter notebook
pip install jupyter notebook
然后在虚拟环境中通过内核关联使用68。
清理缓存
若安装过程中出现依赖冲突,执行:bashCopy Code
pip cache purge conda clean --all
四、操作总结
五、关联配置
若需自定义 Jupyter 工作目录或浏览器路径,可参考配置文件 jupyter_notebook_config.py
进行修改8。