Python &引用;ImportError:没有名为';jwt&x27&引用;在Jupyter

Python &引用;ImportError:没有名为';jwt&x27&引用;在Jupyter,python,import,jwt,jupyter,pyjwt,Python,Import,Jwt,Jupyter,Pyjwt,我正在尝试将jwt(JSON Web令牌)导入Python 下面我已经安装了这个软件包。该包似乎也在终端python环境中导入 >pip install PyJWT >pip freeze >PyJWT==1.4.2 >which pip //anaconda/bin/jupyter >which jupyter //anaconda/bin/jupyter >which jwt //anaconda/bin/jwt 但是,当我试图在Jupyter内部导入j

我正在尝试将jwt(JSON Web令牌)导入Python

下面我已经安装了这个软件包。该包似乎也在终端python环境中导入

>pip install PyJWT
>pip freeze
>PyJWT==1.4.2
>which pip
//anaconda/bin/jupyter
>which jupyter
//anaconda/bin/jupyter
>which jwt
//anaconda/bin/jwt
但是,当我试图在Jupyter内部导入jwt时,我会出现以下错误:

ImportError: No module named 'jwt'

如何在Jupyter中导入模块

我似乎使用了不同的内核


在我将Jupyter切换到“Python[conda root]”之后,导入了包

你试过重新启动内核吗?是的,得到了同样的结果。