如何在我的本地Env上安装sympy输出乳胶?

时间:2019-06-26 11:20:24

标签: python sympy

此命令在在线环境中输出乳胶

solve(x**2 - 33*x + 20*13-14**2, x)

enter image description here

相同命令在我的本地Env上输出纯文本。

enter image description here

更简单的渲染可以成功完成。

enter image description here

我错过了什么吗?

1 个答案:

答案 0 :(得分:1)

您需要先通过致电init_session()

发起会话
  

如果您打算在交互式计算器类型的会话中工作,则init_session()函数将自动导入 SymPy 中的所有内容,创建一些常见的Symbols,进行设置并运行{{1 }}

init_printing()