没有名为"sage.all"的模块 [英] No module named 'sage.all'

查看:926
本文介绍了没有名为"sage.all"的模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将在Django Web应用程序中使用sage模块,因此在我的python virtualenv v3.6中,我使用pip安装了sage.当我运行脚本以使用鼠尾草时,出现以下错误:

Im going to use sage module in my Django web application so in my python virtualenv v3.6 I installed sage using pip. when I run my script to use sage I get the following error:

  Exception Value: No module named 'sage.all'

我读了一些圣人有自己的python的帖子.这是否意味着我不能在python virtualenv中使用鼠尾草?

I read some posts that sage has its own python. does it mean that I can not use sage in my python virtualenv?

推荐答案

pip install sage安装版本0.0.里面没有任何代码的包中的0 ,只有一个空的__init__.py.当然不是您要安装的sage.您必须找出您真正想要的sage.您是说 SageMath ?

pip install sage installs a version 0.0.0 of a package that doesn't have any code inside, just an empty __init__.py. It's certainly not that sage you want to install. You have to find out which sage you really want. Do you mean SageMath?

这篇关于没有名为"sage.all"的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆