安装Eve时出现simplejson依赖项错误 [英] Error with simplejson dependency when installing Eve
问题描述
我是Python的新手,正在尝试安装Eve.我已经安装了Python 3.6.3,并且正在使用pipenv.当我运行pipenv install eve
时,它失败并显示错误(以下是摘录):
I am new to Python and am trying to install Eve. I have Python 3.6.3 installed and am using pipenv. When I run pipenv install eve
it fails with the error (here's an excerpt):
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.
From what I can tell, this path is for the Windows 8.1 SDK.
我该怎么做才能解决此问题?我是否需要安装此SDK才能使simplejson工作?我真的不想安装此SDK,所以为什么simplejson需要这个?
What can I do to fix this? Do I need to install this SDK in order for simplejson to work? I don't really want to install this SDK, so why does simplejson need this?
我怀疑我实际上不需要此SDK,因为我假设所有这些通常都可以在Linux环境中执行.在Windows 7计算机上执行操作时,为什么会存在这种依赖关系?
I suspect that I don't actually need this SDK as I assume all of this can normally be executed in a Linux environment. Why would this dependency exist when executing on a Windows 7 machine as I am trying to do?
推荐答案
我找到了答案.是的,我确实需要SDK. Windows编译器需要在Windows计算机上使用Pip从源安装非纯Python软件包",并且包含在Microsoft Build Tools中.可在此处找到更多信息: https://wiki.python.org/moin/WindowsCompilers
I found the answer. Yes, I do need the SDK. Windows compilers are required to "Install a non-pure Python package from sources with Pip" on Windows machines and are included in Microsoft Build Tools. More information can be found here: https://wiki.python.org/moin/WindowsCompilers
这篇关于安装Eve时出现simplejson依赖项错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!