python - sage 错误:没有名为 pygments.token 的模块
问题描述
我将 sage 从源代码安装到我的 ubuntu-mate 系统的主目录中,正如它在其文档中指定的那样,从源代码安装需要几个小时才能完成,之后我从终端运行“sage”并运行诸如 2+2 之类的示例 - > 4 正确,sage 安装似乎成功,但在尝试从终端运行 sage 后的第二次会话中提示此错误
juan@juan-Satellite-C645:~$ sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 8.1, Release Date: 2017-12-07 │
│ Type "notebook()" for the browser-based notebook interface. │
│ Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
Traceback (most recent call last):
File "/usr/share/sagemath/bin/sage-ipython", line 7, in <module>
from sage.repl.interpreter import SageTerminalApp
File "/usr/lib/python2.7/dist-packages/sage/repl/interpreter.py", line 108, in <module>
from sage.repl.prompts import SagePrompts, InterfacePrompts
File "/usr/lib/python2.7/dist-packages/sage/repl/prompts.py", line 15, in <module>
from pygments.token import Token
ImportError: No module named pygments.token
解决方案
推荐阅读
- html - 在 boostrap 网格中居中图像响应
- math - 在Java中计算2的幂的最佳方法
- python - 将变量中的值与 Python 中的字典进行比较
- python - Python客户端一个接一个连接不同的服务器
- javascript - 使用 if 条件错误将输入值更改为另一个输入值
- arrays - json; 如何将我的 MongoDB 模型 res 数组作为 json 返回到路由器的 .get?(节点js)
- r - Limma 使用 makeContrasts 和 eBayes 比较 Bulk RNA Seq
- json - 弹性搜索:一个查询中的多个术语搜索
- javascript - IOS上的Leaflet Js页面滚动问题
- python - 我找不到基于 class_name、xpath 或 id 的元素