How do I build numpy for unicode ucs4

霸气de小男生 提交于 2020-01-15 09:25:30

问题


I am cross compiling for an embedded device using yocto - so using pip install is not appropriate.

My build works, but keeps defaulting to ucs2 character type, which causes an error: numpy.core.multiarray failed to import.


回答1:


Caveat, I haven't really tried this...

As far as I can see, building numpy with ucs4 support means that you have to compile python with ucs4-support. Thus, you would need to add

 EXTRA_OECONF += "--enable-unicode=ucs4"

in a python_xxx.bbappend, depending on which python (2 or 3) and which OE-release you're using.

If you're getting any other issues after this, is unknown...



来源:https://stackoverflow.com/questions/40247815/how-do-i-build-numpy-for-unicode-ucs4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!