2017-09-20 8 views
2

저는 debian (apt install androguard)을 사용하여 우분투 16.04 LTS OS에 최신 androguard를 설치했습니다. "androlyze -s"명령을 사용하여 쉘에 들어갈 수 있습니다. 하지만 내 파이썬 코드로 androguard 가져올 수 없습니다. 예를 들어 나는 오류를 얻을 터미널에서 "파이썬 test.py"명령을 사용하여 test.py 파일을 실행하면파이썬 우분투에서 androguard를 가져올 수 없습니다. 16.04

Traceback (most recent call last): 
File "test.py", line 1, in <module> 
from androguard.core.bytecodes import apk 
ImportError: No module named androguard.core.bytecodes 

우는 내 파이썬 코드 :

from androguard.core.bytecodes import apk 

a = apk.APK("/path/to/apk/apk_name.apk") 
pk_name = a.get_package() 
act_name = a.get_main_activity() 
final_arg = pk_name+"/"+act_name 
print(final_arg) 

답변

0

에서 설치하는 몇 가지 이유 debian은 안드로 가드를 파이썬 스크립트로 가져올 수 없습니다. 소스에서 설치해야했습니다. 출처에서 설치하는 방법은 다음 링크에서 찾을 수 있습니다.

Androguard Doc

관련 문제