如何为UCS4编译numpy [英] How do I build numpy for unicode ucs4
问题描述
我正在使用yocto交叉编译嵌入式设备-因此不宜使用pip install.
I am cross compiling for an embedded device using yocto - so using pip install is not appropriate.
我的构建工作正常,但是默认使用ucs2字符类型,这会导致错误: numpy.core.multiarray导入失败.
My build works, but keeps defaulting to ucs2 character type, which causes an error: numpy.core.multiarray failed to import.
推荐答案
注意,我还没有真正尝试过...
Caveat, I haven't really tried this...
据我所知,使用ucs4支持构建numpy
意味着您必须使用ucs4-support编译python
.因此,您需要添加
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"
在python_xxx.bb附录中,具体取决于您使用的是python(2或3)以及OE发行版.
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...
这篇关于如何为UCS4编译numpy的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!