安装 Eve 时出现 simplejson 依赖错误
Error with simplejson dependency when installing Eve
我是 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 机器上执行时会存在这种依赖性?
我找到了答案。是的,我确实需要 SDK。在 Windows 台机器上 "Install a non-pure Python package from sources with Pip" 需要 Windows 个编译器,并且包含在 Microsoft Build Tools 中。可以在此处找到更多信息:https://wiki.python.org/moin/WindowsCompilers
我是 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 机器上执行时会存在这种依赖性?
我找到了答案。是的,我确实需要 SDK。在 Windows 台机器上 "Install a non-pure Python package from sources with Pip" 需要 Windows 个编译器,并且包含在 Microsoft Build Tools 中。可以在此处找到更多信息:https://wiki.python.org/moin/WindowsCompilers