swiftnet
swiftnet copied to clipboard
No module named 'lib.cylib' (I am running on Windows)
Hello. The code doesn't work on Windows. I even double clicked build.sh file in lib but only cylib.pyx is generated. How do I make your code work on Windows? Thanks
@sarimmehdi hello, i have the same problem with you. Have you solved it? can you give me some advice? thanks a lot!
Hello. The code doesn't work on Windows. I even double clicked build.sh file in lib but only cylib.pyx is generated. How do I make your code work on Windows? Thanks
you can replace the evaluate method and have no influence on training process.
I'have the same issue with you... AndI found this
import sys import numpy as np
A = sys.path.insert(0, "..") from distutils.core import setup from distutils.extension import Extension from Cython.Build import cythonize from Cython.Distutils import build_ext
ext_module = cythonize("TestOMP.pyx")
ext_module = Extension( "cylib", ["cylib.pyx"], # 更改为自己想要转换的.pyx文件 extra_compile_args=["D:\project\swiftnetrn-18\lib"], extra_link_args=["D:\project\swiftnetrn-18\lib"], )
setup( cmdclass={'build_ext': build_ext}, ext_modules=[ext_module], include_dirs=[np.get_include()] )
just stop when the pylib.cc generated, no .pyd generated.
How to due with this?