LoginSignup
0
0

More than 1 year has passed since last update.

cythonでerror: could not create ~~や~~:not such file or directory が出るときの解決策

Posted at

方法

setup.pyのsetup()にpackage_dirを追加する

hoge/
 ├__init__.py
 ├ setup.py
 ├ core.pyx
 └ core.c

setup.py
setup(
    name='name',
    package_dir={'hoge':''},
    ext_modules=cythonize("core.pyx"),
    include_dirs=[numpy.get_include()]
)

参考元

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0