【发布时间】:2018-12-30 18:53:26
【问题描述】:
当我用 python 3.7 运行某些东西(例如pip install scrapy)时,我遇到了麻烦
error: [WinError 3] The system cannot find the path specified: 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\PlatformSDK\\lib'
我发现我的 VS 14.0 中根本没有 PlatformSDK。
(2018 年 7 月 24 日更新:当我在另一台笔记本电脑上运行 pip install scrapy 时出现另一个错误 [WinError 3] The system cannot find the path specified: 'C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v8.1\\lib',也是 Win 10 操作系统。我不确定我的情况是否类似于 this question's)
然后我从here 获得了vs_community.exe 源并成功安装了Web Developer Tools 和Visual Studio Extensibility Tools Update 3,但仍然没有PlatformSDK。
那么我怎样才能得到这个丢失的文件夹及其里面的包呢?
【问题讨论】:
-
VS2005 是最后一个仍将 Windows SDK 部署到 PlatformSDK 子目录中的 VS 版本。它现在有自己的安装目录。 6.x 和 7.x 版本通常位于 c:\program files (x86)\microsoft sdks\windows 中,8.0 及更高版本位于 c:\program files (x86)\windows kits 中。您需要做什么来更新“我运行了一些东西”代码以告诉它另一个目录,或者您需要什么版本,这在问题中并不明显。 7.1 版通常是安全的选择。
-
@HansPassant 嗨,我更新了我的帖子。实际上是pip install命令出错,所以我很难更改源代码以适应新目录。
-
那么您最好更改问题上的标签以找到这样做的人,至少我会说 [python] 和 [pip]。并命名您尝试使用的包。
-
@HansPassant 好的,我会做的。谢谢
-
您是否尝试过按照stackoverflow.com/a/32545749/939364 中的说明安装scrapy?
标签: python-3.x visual-studio scrapy pip