0

私は Python を初めて使用seleniumし、Web ブラウジングに使用しようとしていますが、次のようになっています。修正するにはどうすればよいですか?

from selenium import webdriver

Traceback (most recent call last):
  File "<pyshell#5>", line 1, in <module>
    from selenium import webdriver
  File "c:\apps\python25\lib\site-packages\selenium-2.35.0-py2.5.egg\selenium\__init__.py", line 16, in <module>
    from selenium import selenium
SyntaxError: future feature unicode_literals is not defined (selenium.py, line 17)
4

1 に答える 1

2

動作させるには、新しいバージョンの Python を使用する必要があります。を使用しPython 2.7ます。Python 2.5セレンをサポートしていません。これに関する問題は次のとおりです。

http://code.google.com/p/selenium/issues/detail?id=1559

于 2013-09-17T11:09:01.017 に答える