安装Jupyter Java内核时遇ModuleNotFoundError: jupyter_client缺失求助
解决Jupyter Java内核安装时
jupyter_client缺失的问题 先激活你安装Jupyter的conda环境(如果使用了虚拟环境):
conda activate your_env_name若使用base环境,可跳过此步,但务必确保后续操作都在Anaconda环境中执行。
直接在激活的环境中安装
jupyter_client模块:
优先用conda安装(兼容性更好):conda install -c conda-forge jupyter_client若conda安装失败,改用pip:
pip install jupyter_client安装完成后,回到Anaconda Prompt,重新运行Java内核的安装脚本:
python C:\<filepath>\Downloads\ijava-1.3.0\install.py额外排查:如果问题仍存在,检查当前使用的Python是否为Anaconda环境中的版本,在Prompt中输入:
where python确认输出路径指向Anaconda安装目录下的Python.exe,避免误使用系统自带Python导致模块路径不匹配。
内容的提问来源于stack exchange,提问作者Chris Nevares
相关产品推荐
相关产品推荐

