将 Sympy 与 Pypy 一起使用 [英] Use Sympy with Pypy

查看: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 一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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