admin管理员组文章数量:1631139
windows安装cython和C++编译器:
so here is the method:
1: install cython by running conda install -c anaconda cython
in Anaconda prompt
2: go in C:\Users\Utilisateur\Anaconda3\Lib\distutils
or wherever your distutils library is the create a distutils.cfg file (by using the notepad) and put
[build]
compiler=mingw32
in it
3: get the latest version of Mingw-w64 (not just Mingw which support just 32 bits) at https://sourceforge/projects/mingw-w64/files/ and install it
4: add C:\Program Files (x86)\mingw-w64\i686-8.1.0-posix-dwarf-rt_v6-rev0\mingw32\bin
to your Path here is a link on how to do that on windows 10: https://www.architectryan/2018/03/17/add-to-the-path-on-windows-10/
5: install libpython and m2w64-toolchain in your anaconda envirement by running conda install -c anaconda libpython
and conda install -c msys2 m2w64-toolchain
It come from these webpage https://python-at-risoe.pages.windenergy.dtu.dk/compiling-on-windows/common_errors.html and should correct the corresponding errors
6: try the first or second test on this page http://docs.cython/en/latest/src/quickstart/build.htmlboth were working for me after step 5
版权声明:本文标题:windows python安装cython和C++编译器 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/xitong/1729088701a1185899.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论