【问题标题】:Error with simplejson dependency when installing Eve安装 Eve 时 simplejson 依赖项出错
【发布时间】:2017-11-29 11:03:43
【问题描述】:

我是 Python 新手,正在尝试安装 Eve。我安装了 Python 3.6.3 并且正在使用 pipenv。当我运行pipenv install eve 时,它会因错误而失败(这里是摘录):

    running build_ext
    building 'simplejson._speedups' extension
    error: [WinError 3] The system cannot find the path specified: 'C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v8.1\\lib'
    _______________________________________

Error: An error occurred while installing eve!
  Failed building wheel for simplejson

据我所知,此路径适用于 Windows 8.1 SDK。

我能做些什么来解决这个问题?我是否需要安装此 SDK 才能使 simplejson 工作?我真的不想安装这个SDK,为什么simplejson需要这个?

我怀疑我实际上并不需要这个 SDK,因为我假设所有这些通常都可以在 Linux 环境中执行。当我尝试在 Windows 7 机器上执行时,为什么会存在这种依赖关系?

【问题讨论】:

    标签: python python-3.x eve simplejson pipenv


    【解决方案1】:

    我找到了答案。是的,我确实需要 SDK。 Windows 编译器需要在 Windows 机器上“使用 Pip 从源安装非纯 Python 包”,并且包含在 Microsoft Build Tools 中。更多信息可以在这里找到:https://wiki.python.org/moin/WindowsCompilers

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-11-18
      • 1970-01-01
      • 1970-01-01
      • 2020-08-27
      • 2020-10-15
      • 2021-02-08
      • 2020-02-06
      相关资源
      最近更新 更多