开发者社区> 问答> 正文

无法使用python 3.7安装robot-framework-ride

我需要安装机器人框架。

我已经安装了python 3.7,wxPython和robotframework。需要安装robotframework-ride。尝试pip install robotframework-ride时出现错误pip._internal.exceptions.InstallationError: Command "python setup.py egg_info" failed with error code 1 in C:\Users\mani~1\AppData\Local\Temp\pip-install-ee73re19\robotframework-ride\。

附加详细信息日志以供参考。

pip install robotframework-ride

删除了构建跟踪器'C:\ Users \ mani〜1 \ AppData \ Local \ Temp \ pip-req-tracker-vdskcs3j'命令“ python setup.py egg_info”在C:\ Users \ mani〜1 \中失败,错误代码为1 AppData \ Local \ Temp \ pip-install-ee73re19 \ robotframework-ride \异常信息:

Traceback (most recent call last):
    File "c:\users\mani\appdata\local\programs\python\python37-32\lib\site-packages\pip\_internal\basecommand.py", line 141, in main
      status = self.run(options, args)
    File "c:\users\mani\appdata\local\programs\python\python37-32\lib\site-packages\pip\_internal\commands\install.py", line 299, in run
      resolver.resolve(requirement_set)
    File "c:\users\mani\appdata\local\programs\python\python37-32\lib\site-packages\pip\_internal\resolve.py", line 102, in resolve
      self._resolve_one(requirement_set, req)
    File "c:\users\mani\appdata\local\programs\python\python37-32\lib\site-packages\pip\_internal\resolve.py", line 256, in _resolve_one
      abstract_dist = self._get_abstract_dist_for(req_to_install)
    File "c:\users\mani\appdata\local\programs\python\python37-32\lib\site-packages\pip\_internal\resolve.py", line 209, in _get_abstract_dist_for
      self.require_hashes
    File "c:\users\mani\appdata\local\programs\python\python37-32\lib\site-packages\pip\_internal\operations\prepare.py", line 298, in prepare_linked_requirement
      abstract_dist.prep_for_dist(finder, self.build_isolation)
    File "c:\users\mani\appdata\local\programs\python\python37-32\lib\site-packages\pip\_internal\operations\prepare.py", line 126, in prep_for_dist
      self.req.run_egg_info()
    File "c:\users\mani\appdata\local\programs\python\python37-32\lib\site-packages\pip\_internal\req\req_install.py", line 636, in run_egg_info
      command_desc='python setup.py egg_info')
    File "c:\users\mani\appdata\local\programs\python\python37-32\lib\site-packages\pip\_internal\utils\misc.py", line 701, in call_subprocess
      % (command_desc, proc.returncode, cwd))
  pip._internal.exceptions.InstallationError: Command "python setup.py egg_info" failed with error code 1 in C:\Users\mani~1\AppData\Local\Temp\pip-install-ee73re19\robotframework-ride\
easy_install robotframework-ride

在处理上述异常期间,发生了另一个异常:

Traceback (most recent call last):
      File "c:\users\mani\appdata\local\programs\python\python37-32\lib\runpy.py", line 193, in _run_module_as_main
        "__main__", mod_spec)
      File "c:\users\mani\appdata\local\programs\python\python37-32\lib\runpy.py", line 85, in _run_code
        exec(code, run_globals)
      File "C:\Users\mani\AppData\Local\Programs\Python\Python37-32\Scripts\easy_install.exe\__main__.py", line 9, in <module>
      File "c:\users\mani\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\command\easy_install.py", line 2312, in main
        **kw
      File "c:\users\mani\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\__init__.py", line 129, in setup
        return distutils.core.setup(**attrs)
      File "c:\users\mani\appdata\local\programs\python\python37-32\lib\distutils\core.py", line 148, in setup
        dist.run_commands()
      File "c:\users\mani\appdata\local\programs\python\python37-32\lib\distutils\dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "c:\users\mani\appdata\local\programs\python\python37-32\lib\distutils\dist.py", line 985, in run_command
        cmd_obj.run()
      File "c:\users\mani\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\command\easy_install.py", line 412, in run
        self.easy_install(spec, not self.no_deps)
      File "c:\users\mani\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\command\easy_install.py", line 673, in easy_install
        return self.install_item(spec, dist.location, tmpdir, deps)
      File "c:\users\mani\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\command\easy_install.py", line 699, in install_item
        dists = self.install_eggs(spec, download, tmpdir)
      File "c:\users\mani\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\command\easy_install.py", line 884, in install_eggs
        return self.build_and_install(setup_script, setup_base)
      File "c:\users\mani\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\command\easy_install.py", line 1152, in build_and_install
        self.run_setup(setup_script, setup_base, args)
      File "c:\users\mani\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\command\easy_install.py", line 1138, in run_setup
        run_setup(setup_script, args)
      File "c:\users\mani\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\sandbox.py", line 253, in run_setup
        raise
      File "c:\users\mani\appdata\local\programs\python\python37-32\lib\contextlib.py", line 130, in __exit__
        self.gen.throw(type, value, traceback)
      File "c:\users\mani\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\sandbox.py", line 195, in setup_context
        yield
      File "c:\users\mani\appdata\local\programs\python\python37-32\lib\contextlib.py", line 130, in __exit__
        self.gen.throw(type, value, traceback)
      File "c:\users\mani\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\sandbox.py", line 166, in save_modules
        saved_exc.resume()
      File "c:\users\mani\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\sandbox.py", line 141, in resume
        six.reraise(type, exc, self._tb)
      File "c:\users\mani\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\_vendor\six.py", line 685, in reraise
        raise value.with_traceback(tb)
      File "c:\users\mani\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\sandbox.py", line 154, in save_modules
        yield saved
      File "c:\users\mani\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\sandbox.py", line 195, in setup_context
        yield
      File "c:\users\mani\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\sandbox.py", line 250, in run_setup
        _execfile(setup_script, ns)
      File "c:\users\mani\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\sandbox.py", line 45, in _execfile
        exec(code, globals, locals)
      File "C:\Users\MPULAK~1\AppData\Local\Temp\easy_install-x0z_5joe\robotframework-ride-2.0a1\setup.py", line 20, in <module>
    NameError: name 'execfile' is not defined

展开
收起
祖安文状元 2020-02-22 18:17:02 1910 0
1 条回答
写回答
取消 提交回答
  • 好了,这里的问题是我从未定义的execfile中可以简单地看到的,那就是python3尚不支持您要安装的库。由于python 3或更高版本已将其修改为exec。我查看了github,发现了一些修复程序。

    您可以查看此线程,因为正式项目尚未解决该问题,用户helio似乎做出了贡献。因此,您可以签出他的版本,并查看是否可以按照有关库的他的预发布说明进行操作。

    2020-02-22 18:17:09
    赞同 展开评论 打赏
问答分类:
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

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