反汇编工具capstone安装后import error

使用sudo pip install capstone后,使用如下代码import时出现error。

from capstone import *

错误信息:

File "/usr/local/lib/python2.7/dist-packages/capstone/capstone.py", line 162, in <module>
    raise ImportError("ERROR: fail to load the dynamic library.")
ImportError: ERROR: fail to load the dynamic library.

此时,应该是capstone的版本问题。只需要使用如下命令重新安装即可。
sudo pip install -U capstone

done.

原文地址:https://www.cnblogs.com/rainduck/p/5424655.html