首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >未能使用pip安装Sparkmagic

未能使用pip安装Sparkmagic
EN

Stack Overflow用户
提问于 2022-10-11 16:30:36
回答 2查看 71关注 0票数 0

我正试图通过pip在jupyter笔记本中安装sparkmaic,但错误在以下:

命令:

代码语言:javascript
复制
pip install sparkmagic

错误:

代码语言:javascript
复制
Collecting gssapi>=1.6.0
  Using cached gssapi-1.8.1.tar.gz (94 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [21 lines of output]
      /bin/sh: 1: krb5-config: not found
      Traceback (most recent call last):
        File "/home/e004255/.local/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
          main()
        File "/home/e004255/.local/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/home/e004255/.local/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/tmp/pip-build-env-guoi_e0p/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 338, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
        File "/tmp/pip-build-env-guoi_e0p/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 320, in _get_build_requires
          self.run_setup()
        File "/tmp/pip-build-env-guoi_e0p/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 335, in run_setup
          exec(code, locals())
        File "<string>", line 109, in <module>
        File "<string>", line 22, in get_output
        File "/usr/lib/python3.8/subprocess.py", line 415, in check_output
          return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
        File "/usr/lib/python3.8/subprocess.py", line 516, in run
          raise CalledProcessError(retcode, process.args,
      subprocess.CalledProcessError: Command 'krb5-config --libs gssapi' returned non-zero exit status 127.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

注意:此错误源于子进程,很可能与pip无关。

EN

回答 2

Stack Overflow用户

发布于 2022-10-11 16:37:46

看起来您的系统缺少了一个名为krb5-config的工具。您可以通过以下方式安装它:

代码语言:javascript
复制
sudo apt install krb5-config
票数 0
EN

Stack Overflow用户

发布于 2022-11-28 19:26:25

谢谢@bernhard但是,我也不得不安装dev工具(ubuntu20.04)。

代码语言:javascript
复制
sudo apt-get install libkrb5-dev
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/74031328

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档