我正在努力
cython
这是第一次。这是我的。
设置。py公司
import os
from distutils.core import setup
from Cython.Build import cythonize
os.chdir(os.path.dirname(__file__))
setup(ext_modules = cythonize('example123.pyx'))
示例123。pyx公司
def say_hello(name):
print(f"Hello {name}")
之后
setup.py build_ext --inplace
我只看到
example123.c
在该文件夹中,未创建其他文件。在所有文件中搜索没有提供任何结果。据我所知
.so
或
.pyd
文件似乎要导入到python脚本中。可能有什么问题?
我的规格:
Windows 7 x64
,则,
gcc明W64
,则,
python 3.8
,则,
cython 0.29.24