[英]Error when I'm trying to install angr on OS X
當我嘗試安裝angr
此錯誤:
>> pip install angr
> Collecting angr
> Using cached angr-7.7.9.21.tar.gz
> Collecting ana (from angr)
> Using cached ana-0.03.zip
> Collecting bintrees (from angr)
> Using cached bintrees-2.0.7.zip
> Collecting cachetools (from angr)
> Using cached cachetools-2.0.1-py2.py3-none-any.whl
> Collecting capstone (from angr)
> Using cached capstone-3.0.4.tar.gz
> Collecting cooldict (from angr)
> Using cached cooldict-1.02.tar.gz
> Collecting dpkt-fix (from angr)
> Using cached dpkt-fix-1.7.tar.gz
> Complete output from command python setup.py egg_info:
> Traceback (most recent call last):
> File "<string>", line 1, in <module>
> File "/private/var/folders/sw/ccryj7_95wn7wc94w2nn1plw0000gn/T/pip-build-njcedr48/dpkt-fix/setup.py",
> line 4, in <module>
> import dpkt
> File "/private/var/folders/sw/ccryj7_95wn7wc94w2nn1plw0000gn/T/pip-build-njcedr48/dpkt-fix/dpkt/__init__.py",
> line 13, in <module>
> import ah
> ImportError: No module named 'ah'
>
> ----------------------------------------
> Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/sw/ccryj7_95wn7wc94w2nn1plw0000gn/T/pip-build-njcedr48/dpkt-fix/
你能幫忙解決這個問題嗎?
OS X EI Captain 10.11.6
您似乎正在使用 Python 3。 angr
依賴於包dpkt-fix
,它在安裝時嘗試導入自身,在 Python 3 中失敗,因為dpkt-fix
的代碼使用import ah
(et alii) 來表示import .ah
,僅適用於 Python 2。
解決方案:改用 Python 2。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.