numpy 和 pypy 版本不一致的奇怪问题

Strange problem of inconsistent numpy and pypy versions

提问人:zheng.zheng 提问时间:6/20/2023 更新时间:6/20/2023 访问量:17

问:

以前: pypy:pypy3.9-v7.3.9-linux64.tar.bz2 numpy:1.22.3 numpy在环境中工作正常

现在: pypy:pypy3.9-v7.3.9-linux64.tar.bz2 numpy:1.22.3 numpy 在环境中不起作用

错误信息

  File "<stdin>", line 1, in <module>
  File "/usr/local/pypy3.9-v7.3.9-linux64/lib/pypy3.9/site-packages/numpy/__init__.py", line 152, in <module>
    from . import random
  File "/usr/local/pypy3.9-v7.3.9-linux64/lib/pypy3.9/site-packages/numpy/random/__init__.py", line 180, in <module>
    from . import _pickle
  File "/usr/local/pypy3.9-v7.3.9-linux64/lib/pypy3.9/site-packages/numpy/random/_pickle.py", line 1, in <module>
    from .mtrand import RandomState
ImportError: /usr/local/pypy3.9-v7.3.9-linux64/lib/pypy3.9/site-packages/numpy/random/mtrand.pypy39-pp73-x86_64-linux-gnu.so: undefined symbol: PyInterpreterState_GetID```



Did not find any changes in people pypy and numpy. I do not know what the real reason is?
pypy的

评论


答: 暂无答案