[英]I want to install pyv8 for using python-Wappalyzer but I cant fix this error
at the first I ran this: 首先,我运行了这个:
pip install -e git://github.com/brokenseal/PyV8-OS-X#egg=pyv8
this message showed : 此消息显示:
Obtaining pyv8 from git+git://github.com/brokenseal/PyV8-OS-X#egg=pyv8
Updating ./src/pyv8 clone
Running setup.py egg_info for package pyv8
Installing collected packages: pyv8
Running setup.py develop for pyv8
Checking .pth file support in /usr/local/lib/python2.7/dist-packages/
/usr/bin/python -E -c pass
TEST PASSED: /usr/local/lib/python2.7/dist-packages/ appears to support .pth files
Creating /usr/local/lib/python2.7/dist-packages/PyV8.egg-link (link to .)
PyV8 0.8 is already the active version in easy-install.pth
Installed /root/src/pyv8
Successfully installed pyv8
Cleaning up...
I used this code for run python-Wappalyzer : 我将此代码用于运行python-Wappalyzer:
from wappalyzer import Wappalyzer
error was: 错误是:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/wappalyzer/__init__.py", line 8, in <module>
from pyv8 import PyV8
File "/root/src/pyv8/pyv8/PyV8.py", line 17, in <module>
import _PyV8
ImportError: /root/src/pyv8/pyv8/_PyV8.so: invalid ELF header
I installed lxml and Requests but not fixed. 我安装了lxml和Requests,但没有固定。 how can I fix this problem .I ran this code in ubuntu 14.4 and kali but had same problem. 如何解决此问题。我在ubuntu 14.4和kali中运行了此代码,但遇到了同样的问题。
It seems that you downloaded wrong binary (32 bit, 64 bit) for PyV8
看来您为PyV8
下载了错误的二进制文件(32位,64位)
FOR 32 bit arch Use these steps: FOR 32 bit arch使用这些步骤:
$ wget -c "https://raw.githubusercontent.com/emmetio/pyv8-binaries/master/pyv8-linux32.zip"
$ unzip pyv8-linux32.zip
$ sudo cp *PyV8* /usr/lib/python2.7/dist-packages/
For 64 bit arch Use these steps: 对于64位arch,请执行以下步骤:
$ wget -c "https://raw.githubusercontent.com/emmetio/pyv8-binaries/master/pyv8-linux64.zip"
$ unzip pyv8-linux64.zip
$ rm -rf /usr/lib/python2.7/dist-packages/*PyV8*
$ sudo cp *PyV8* /usr/lib/python2.7/dist-packages/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.