Cython: ImportError: No module named 'myModule': how to call a cython module containing a cimport to another cython nodule?

后端 未结 2 1438
轻奢々
轻奢々 2020-12-23 22:49

I\'m trying to import a cython module data.pyx into another cython module user.pyx. Everything compile fine, but when I try to call user.pyx in a python module, I am getting

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-23 23:18

    I might be missing something about Cython, but I think it's:

    import package.user
    user.doSomething()
    

提交回复
热议问题