简体   繁体   English

jupyter 中没有名为 Sympy 的模块

[英]No module named Sympy in jupyter

在此处输入图像描述

I downloaded and updated sympy, before that re - entered to jupyter我下载并更新了 sympy,然后重新进入 jupyter

Try尝试

%pip install --upgrade pip
%pip install sympy 
import sympy

What you should do is你应该做的是

pip install --upgrade sympy

Then you could do那你可以做

import sympy

For more info, visit this link: https://www.datacamp.com/community/tutorials/pip-python-package-manager有关更多信息,请访问此链接: https://www.datacamp.com/community/tutorials/pip-python-package-manager

If you want to upgrade pip, you could do the same thing:如果你想升级 pip,你可以做同样的事情:

pip install --upgrade pip

I installed and import sympy in the anaconda jupyter environment with python 3.8.我在 anaconda jupyter 环境中用 python 3.8 安装并导入了 sympy。

!pip install sympy
import sympy

You can try quiting the notebook & navigator both and again re-open.您可以尝试同时退出笔记本和导航器,然后重新打开。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM