为 Robotframework 导入 Selenium2Library 时遇到了困难。
尝试验证我的 Selenium2Library 安装时,我在 Python shell 中收到以下错误
>>> import Selenium2Library
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import Selenium2Library
File "C:\Users\user\AppData\Local\Programs\Python\Python35-32\lib\site-packages\robotframework_selenium2library-1.7.4-py3.5-win32.egg\Selenium2Library\__init__.py", line 2, in <module>
from keywords import *
ImportError: No module named 'keywords'
>>>
我之前使用不同的模块时遇到过此错误,并且能够使用 easy_install(模块名称)修复它,但是对关键字执行此操作会产生此结果
Searching for keywords
Reading https://pypi.python.org/simple/keywords/
Couldn't find index page for 'keywords' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
No local packages or download links found for keywords
error: Could not find suitable distribution for Requirement.parse('keywords')
非常感谢任何建议,因为我不是真正的程序员而是测试人员。谢谢