开发者社区> 问答> 正文

Python 3.5.1无法下载Robot Framework库

我是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

展开
收起
祖安文状元 2020-02-21 17:38:21 725 0
2 条回答
写回答
取消 提交回答
  • 代码改变世界,我们改变代码

    下载不了,是你的pip镜像有问题,可以选择国内的镜像用阿里的,清华的,等等。

    2020-03-18 18:02:02
    赞同 展开评论 打赏
  • 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

    2020-02-21 17:38:26
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
From Python Scikit-Learn to Sc 立即下载
Data Pre-Processing in Python: 立即下载
双剑合璧-Python和大数据计算平台的结合 立即下载