我是Python的新手,正在尝试使用Robot Framework自动化测试。当我尝试通过下载库时pip遇到了一些问题。我使用Python 3.5.1,Robot Framework 3.0,PyCharm 2016.1(64),
命令的输出pip install robotframework-selenium2library:
Collecting robotframework-selenium2library Using cached robotframework-selenium2library-1.7.4.tar.gz Complete output from command python setup.py egg_info: Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.14.tar.gz Extracting in C:\Users\Radek\AppData\Local\Temp\tmpooendh2g Traceback (most recent call last): File "c:\users\radek\appdata\local\programs\python\python35\lib\site-packages\ez_setup.py", line 143, in use_setuptools raise ImportError ImportError 在处理以上异常期间,发生了另一个异常:
Traceback (most recent call last): File " ", line 1, in File "C:\Users\Radek\AppData\Local\Temp\pip-build-gh4jw21a\robotframework-selenium2library\setup.py", line 8, in use_setuptools() File "c:\users\radek\appdata\local\programs\python\python35\lib\site-packages\ez_setup.py", line 145, in use_setuptools return _do_download(version, download_base, to_dir, download_delay) File "c:\users\radek\appdata\local\programs\python\python35\lib\site-packages\ez_setup.py", line 125, in _do_download _build_egg(egg, tarball, to_dir) File "c:\users\radek\appdata\local\programs\python\python35\lib\site-packages\ez_setup.py", line 99, in _build_egg _extractall(tar) File "c:\users\radek\appdata\local\programs\python\python35\lib\site-packages\ez_setup.py", line 467, in _extractall self.chown(tarinfo, dirpath) TypeError: chown() missing 1 required positional argument: 'numeric_owner'
命令“ python setup.py egg_info”在C:\ Users \ Radek \ AppData \ Local \ Temp \ pip-build-gh4jw21a \ robotframework-selenium2library \中失败,错误代码为1
Setuptools是最新的,ez_setup也是如此
C:\Users\Radek>pip install --upgrade setuptools Requirement already up-to-date: setuptools in c:\users\radek\appdata\local\programs\python\python35\lib\site-packages C:\Users\Radek>pip install ez_setup Requirement already satisfied (use --upgrade to upgrade): ez-setup in c:\users\radek\appdata\local\programs\python\python35\lib\site-packages
Selenium2Library与Python 3.x尚不兼容。
我们有一个Pull Request(github.com/robotframework/Selenium2Library/pull/564),以使Selenium2Library与所有Python版本兼容,但它不在官方版本中,并且已使用Python 2.6、2.7和3.4进行了测试。
我要安装您可以尝试github.com/HelioGuilherme66/robotframework-selenium2library/releases/tag/v1.8.0b1例如:pip install -U --pre https://github.com/HelioGuilherme66/robotframework-selenium2library /archive/v1.8.0b1.zip
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。