将 Sympy 与 Pypy 一起使用

编程入门 行业动态 更新时间:2024-10-10 05:19:44
本文介绍了将 Sympy 与 Pypy 一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已经在运行 El Capitan 的 Mac 上安装了 Python 2.7 和 3.5.此外,我将 Sympy 包(通过 pip 安装)与 python 一起使用.我想用 Pypy 运行我的代码(安装自制软件),但似乎 Pypy 没有找到 Sympy 并说:

I have installed Python 2.7 and 3.5 on a Mac running with El Capitan. Moreover, I use the package Sympy (installed with pip) with python. I wanted to run my code with Pypy (installed with homebrew) but it seems that Pypy doesn't find Sympy and says:

没有名为 sympy 的模块"

"No module named sympy"

我根本不是专家,现在不知道该怎么办.Sympy 适用于 python 2 和 3,但不适用于 Pypy.

I am not an expert at all and don't know what to do now. Sympy works well with python 2 and 3 but not with Pypy.

感谢您的每一个回答,在此先感谢您.

I appreciate every answer, thank you in advance.

推荐答案

PyPy 包与 Python 包是分开的.您可以使用

PyPy packages are separate from Python packages. You can install SymPy into PyPy with

pypy -m pip install sympy

更多推荐

将 Sympy 与 Pypy 一起使用

本文发布于:2023-11-25 20:23:51,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1631222.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Sympy   Pypy

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!