Check
sys.executableandsys.pathinside the notebook - I bet your kernel is not running in the environment you intended it to.
finds the python3 kernel.
jupyter kernelspec list
https://stackoverflow.com/questions/65576206/how-to-change-python-version-in-jupyter-notebook
pip3 install ipykernel --upgrade
python3 -m ipykernel install --user
本文介绍了如何在Jupyter Notebook中正确配置Python内核环境,包括检查运行环境、安装指定版本的Python内核等关键步骤。
1万+

被折叠的 条评论
为什么被折叠?



