【发布时间】:2012-06-27 17:24:22
【问题描述】:
我在 Windows XP 上通过 IDLE GUI 使用 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”,不带引号。
【问题讨论】: