swiftnet icon indicating copy to clipboard operation
swiftnet copied to clipboard

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

Open sarimmehdi opened this issue 5 years ago • 3 comments

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 avatar Oct 30 '19 13:10 sarimmehdi

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

huangfuts avatar Nov 12 '19 09:11 huangfuts

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.

SmalWhite avatar Jan 22 '21 03:01 SmalWhite

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?

littlecay avatar Mar 24 '22 09:03 littlecay