当我用 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'
我发现没有 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 操作系统。我不确定我的情况是否与 this question's 类似)
然后我得到了一个 vs_community.exe
来源 here并安装 Web Developer Tools
和 Visual Studio Extensibility Tools Update 3
成功,但仍然没有 PlatformSDK
.
那么我怎样才能得到这个丢失的文件夹及其里面的包呢?
最佳答案
有一次我在安装另一个需要 Windows Visual C++ 的 Python 程序 (QARK) 时遇到问题。事实上,在 cmd/PowerShell 中,我被告知缺少所需的版本。
所以我遵循了 THIS 上写的内容网站,所以我不再有这个问题(为了安全,我也重新启动了):
- Install using any ONE of these choices:
- Microsoft Build Tools for Visual Studio
- Alternative link to Microsoft Build Tools for Visual Studio.
- Offline installer: vs_buildtools.exe
- Select: Workloads → C++ build tools.
- Install options: select only the “Windows 10 SDK” (assuming the computer is Windows 10). Optionally, if you want to use MSVC cl.exe C/C++ compiler from the command line, additionally select the C++ build tools, which takes an additional 2 GB disk space.
之后,我运行它没有任何问题。
我希望我有所帮助! 🤞
关于python-3.x - 现在如何安装 Visual Studio 2015 PlatformSDK?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51476784/