我在CentOS 5.5 x86_64机器上安装了python 2.7。在使用Selenium Web驱动程序时,Python调用32位X11 lib文件而不是64位
$ file /opt/python2.7.1/bin/python
/opt/python2.7.1/bin/python: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped
然后我绑使用硒网络驱动程序&失败,出现以下错误运行一个基本的登录脚本。
selenium.common.exceptions.WebDriverException: Message: 'The browser appears to have exited before we could connect. The output was: Failed to dlopen /usr/lib/libX11.so.6\ndlerror says: /usr/lib/libX11.so.6: wrong ELF class: ELFCLASS32\n'
为什么它使用32位X11库而不是使用64位X11库?我如何使python使用64位库?
Sign is removed,please refer the FAQ – 2011-12-23 13:56:53