在Windows 10下进行python-debug的Cython构建

时间:2017-09-15 10:12:55

标签: python python-3.x cython

我正在尝试构建与python-debug兼容的Cython版本。我设法使用VS 2017 C ++编译器编译Python 3.6.2和最近的Cython 0.26.1。但是,当我尝试运行cython时,收到以下错误消息:

Traceback (most recent call last):
File "d:\Python-3.6.2-build\Scripts\cython-script.py", line 11, in <module>
load_entry_point('Cython==0.26.1', 'console_scripts', 'cython')()
File "d:\Python-3.6.2-build\lib\site-packages\setuptools-33.1.1-py3.6.egg\pkg_resources\__init__.py", line 561, in load_entry_point
File "d:\Python-3.6.2-build\lib\site-packages\setuptools-33.1.1-py3.6.egg\pkg_resources\__init__.py", line 2631, in load_entry_point
File "d:\Python-3.6.2-build\lib\site-packages\setuptools-33.1.1-py3.6.egg\pkg_resources\__init__.py", line 2291, in load
File "d:\Python-3.6.2-build\lib\site-packages\setuptools-33.1.1-py3.6.egg\pkg_resources\__init__.py", line 2297, in resolve
File "d:\Python-3.6.2-build\lib\site-packages\Cython\Compiler\Main.py", line 28, in <module>
from .Scanning import PyrexScanner, FileSourceDescriptor
ImportError: DLL load failed: The specified module could not be found.

事实上,导入扫描模块(动态库)似乎存在问题。在我的 Python \ Lib \ site-packages \ Cython \ Compiler 中,我有与该模块相关的以下文件:

  • Scanning.pxd
  • Scanning.py
  • Scanning_d.cp36-win32.pyd

我尝试将后者重命名为Scanning_d.pyd,但这并没有改变这种情况。有没有人面临类似的问题?

0 个答案:

没有答案