我正在尝试运行一个包含多个包的 Python 脚本。我不断得到的错误涉及 mpfr.so 文件(MPFR 模块)。以下是整封邮件的内容:
Traceback (most recent call last):
File "/Users/rebekahgruver/Desktop/solver/spopt-stable/SpOpt.py", line 3, in <module>
from bigfloat import BigFloat
File "/Users/rebekahgruver/Desktop/macPKG/venv/lib/python2.7/site-packages/bigfloat/__init__.py", line 107, in <module>
from bigfloat.core import (
File "/Users/rebekahgruver/Desktop/macPKG/venv/lib/python2.7/site-packages/bigfloat/core.py", line 26, in <module>
import mpfr
ImportError: dlopen(/Users/rebekahgruver/Desktop/macPKG/venv/lib/python2.7/site-packages/mpfr.so, 2): Symbol not found: _mpfr_acos
Referenced from: /Users/rebekahgruver/Desktop/macPKG/venv/lib/python2.7/site-packages/mpfr.so
Expected in: flat namespace
我一直在尝试重新安装软件包并且无法解决它。