我遇到了为机器人框架导入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')任何建议都非常感谢,因为我不是一个真正的程序员,而是一个测试员。谢谢
发布于 2016-06-15 03:12:12
有一个预发布包,它可以很好地与Python3.4,here一起安装:
pip install --pre -U https://github.com/HelioGuilherme66/robotframework-selenium2library/archive/v1.8.0b3.tar.gzPull Request正在等待合并。
发布于 2016-06-15 00:47:36
到目前为止,Selenium2Library与Python3.5不兼容。请改用Python 2.7。
https://stackoverflow.com/questions/37809377
复制相似问题