我正在通过 IDLE GUI 在 Windows XP 上使用 Python 2.7.3,并且我正在尝试通过 Python API 在本地运行 Z3 4.0。
这条线工作正常:
>>> from z3 import *
此行没有:
>>> x = Int('x')
Traceback (most recent call last):
[...]
File "C:\Program Files\Microsoft Research\Z3-4.0\python\z3core.py", line 34, in init
_lib = ctypes.CDLL(PATH)
File "C:\Python27\lib\ctypes\__init__.py", line 365, in __init__
self._handle = _dlopen(self._name, mode)
WindowsError: [Error 126] The specified module could not be found
任何人都知道问题可能是什么?
我的 PYTHONPATH 设置为“C:\Program Files\Microsoft Research\Z3-4.0\python”,不带引号。