现在如何安装Visual Studio 2015 PlatformSDK?

2024-01-25

当我运行某些东西时(例如pip install scrapy)使用 python 3.7,我遇到了麻烦error: [WinError 3] The system cannot find the path specified: 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\PlatformSDK\\lib'我发现没有PlatformSDK在我的 VS 14.0 中。

(2018 年 7 月 24 日更新:我收到另一个错误[WinError 3] The system cannot find the path specified: 'C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v8.1\\lib'当我跑的时候pip install scrapy在另一台笔记本电脑上,也是 Win 10 操作系统。我不确定我的情况是否类似于这个问题的 https://stackoverflow.com/questions/50400571/filenotfounderror-microsoft-sdks-windows-v8-1-lib)

然后我得到了一个vs_community.exe来源自here https://stackoverflow.com/questions/44290672/how-to-download-visual-studio-community-edition-2015-not-2017并安装了Web Developer Tools and Visual Studio Extensibility Tools Update 3成功了,但是还是不行PlatformSDK.

那么我怎样才能得到这个丢失的文件夹及其里面的包呢?


有一次我在安装另一个需要 Windows Visual C++ 的 Python 程序 (QARK) 时遇到问题。事实上,在 cmd / PowerShell 中我被告知缺少所需的版本。
所以我按照上面写的THIS https://www.scivision.dev/python-windows-visual-c-14-required/网站,所以我不再有这个问题(为了安全起见,我也重新启动):

  1. Install using any ONE of these choices:
    • 微软
    • Microsoft 的替代链接Visual Studio 构建工具 https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2019.
    • 离线安装程序:vs_buildtools.exe https://aka.ms/vs/16/release/vs_buildtools.exe
  2. 选择:工作负载 → C++ 构建工具。
  3. 安装选项:仅选择“Windows 10 SDK”(假设计算机是Windows 10)。或者,如果您想从命令行使用 MSVC cl.exe C/C++ 编译器,请另外选择 C++ 构建工具,这会额外占用 2 GB 磁盘空间。


之后我运行它没有任何问题。
我希望我有所帮助! ????

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

现在如何安装Visual Studio 2015 PlatformSDK? 的相关文章

随机推荐