简体   繁体   English

非法指令:4导入python插件时

[英]Illegal instruction: 4 when importing python plugins

I tried to install a hoomd _script molecular dynamics software on my imac (it's imac pro before 2009, the system is OS X El captain v10.11.3 ). 我试图在我的imac上安装一个hoomd _script分子动力学软件(它是2009年之前的imac pro,系统是OS X El captain v10.11.3 )。 I have successfully compiled this to iMac, but when I import this hoomd_script in Python 2.7.12 , Python crashes completely and I get the error: 我已成功将其编译为iMac,但当我在Python 2.7.12导入此hoomd_script时,Python完全崩溃并且我收到错误:

Illegal instruction: 4 . Illegal instruction: 4

I have installed all the prerequisites packages (including boost , sphinx , git , mpich2 , numpy , cmake , pkg-config , sqlite ) using conda . 我已经安装的所有先决条件软件包(包括boostsphinxgitmpich2numpycmakepkg-configsqlite ),使用conda

I applied python -vc 'hoomd_script' to test, and the result is here . 我应用python -vc 'hoomd_script'进行测试,结果就在这里 I tried to reinstall all the packages including conda and recompile the hoomd , but nothing changed. 我试图重新安装所有的软件包,包括conda并重新编译hoomd ,但什么都没有改变。 I wonder how can I fix this. 我想知道如何解决这个问题。 Thanks! 谢谢!

As stated on the HOOMD-blue web page , the conda builds require a CPU capable of AVX instructions (2011 or newer). 正如HOOMD蓝色网页上所述, conda版本需要一个能够支持AVX指令的CPU(2011或更新版本)。 The illegal instruction results because you are trying to execute an instruction that your processor does not support. 非法指令的结果是因为您尝试执行处理器不支持的指令。

Compiling hoomd from a clean build directory on your system should result in a binary that your system can execute. 从系统上的干净构建目录编译hoomd应该会生成系统可以执行的二进制文件。 Note that conda provided prerequisite libraries are difficult to work with: I recommend using macports or homebrew. 请注意,conda提供的必备库难以使用:我建议使用macports或homebrew。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM