gpt4 book ai didi

python - pypy import clr 在 Windows 上失败

转载 作者:IT老高 更新时间:2023-10-28 21:05:20 24 4
gpt4 key购买 nike

我在 Win10 上用 pypy 尝试了 pythonnet。它构建良好,但随后无法 import clr。屏幕截图中的这个调用之后发生了崩溃。

有任何调试技巧/工具吗?

enter image description here

pypy
Python 2.7.12 (aff251e54385, Nov 09 2016, 17:54:55)
[PyPy 5.6.0 with MSC v.1500 32 bit] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>> import clr
Attempting to load 'Python.Runtime' using standard binding rules.
'Python.Runtime' not found using standard binding rules.
Attempting to load Python.Runtime from: 'C:\Python\pypy2-v5.6.0-win32\site-packages\Python.Runtime.dll'.
Success loading 'Python.Runtime' from: 'C:\Python\pypy2-v5.6.0-win32\site-packages\Python.Runtime.dll'.
RPython traceback:
File "pypy_module_cpyext_2.c", line 26114, in type_realize
File "pypy_module_cpyext_2.c", line 31744, in _type_realize
Fatal RPython error: AssertionError

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

Here is the detailed thread about the issue

最佳答案

这似乎是 known critical issuepypy.

我建议更新到 Python3 因为 Python2.7 变成 unsupported从 2020 年初开始,即使这不能解决您的问题。

关于python - pypy import clr 在 Windows 上失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42152122/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com