4
Pypy有一个numpy分叉。如何在pypy沙盒中使用它?如何导入pypy沙盒中的numpy
沙盒提示'No module named numpy'。
但是,当我试图复制lib_pypy目录中的numpy库时,我收到了此错误消息。有没有办法在pypy 沙盒中导入numpy?
import numpyTraceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/bin/lib_pypy/numpy/__init__.py", line 160, in <module>
raise ImportError(msg)
ImportError: Error importing numpy: you should not try to import numpy from
its source directory; please exit the numpy source tree, and relaunch
your python interpreter from there.
@yonexer来自主要开发人员的权威答复。 – rth
谢谢,@Armin Rigo – yonexer
在FAQ中添加:http://pypy.readthedocs.org/en/latest/faq.html#module-xyz-does-not-work-in-the-sandboxed-pypy –