orsic / swiftnet

GNU General Public License v3.0
251 stars 54 forks source link

No module named 'lib.cylib' (I am running on Windows) #21

Open sarimmehdi opened 4 years ago

sarimmehdi commented 4 years ago

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

huangfuts commented 4 years ago

@sarimmehdi hello, i have the same problem with you. Have you solved it? can you give me some advice? thanks a lot!

SmalWhite commented 3 years ago

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.

littlecay commented 2 years ago

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?