jupyter notebook报错 ModuleNotFoundError: No module named xxx

问题描述:

在jupyter notebook中引用pandas库,报错:no module named pandas

解决办法:

  1. 打开windows终端,运行命令:
D:\Programs\Python\Python310\python.exe -m pip install --upgrade pip

其中D:\Programs\Python\Python310\python.exe是我安装的python

  1. 更新完成之后,运行命令:
python.exe -m pip install pandas

jupyter notebook报错 ModuleNotFoundError: No module named xxx_第1张图片

  1. 其他类似,如报错No module named ‘sqlalchemy’,那么在终端运行:
python.exe -m pip install sqlalchemy

你可能感兴趣的:(pandas,jupyter,python)