以安装sympy为例:
在Jupyter中输入
!pip install --upgrade
!pip install sympy
import sympy
如果不奏效,试试下面这个:
import sys
sys.path.append('my/path/to/module/folder')
#the (successful) line "!pip install sympy " should tell you where this path is
参考链接:https://stackoverflow.com/questions/30275418/no-module-named-sympy