python-3.x - 现在如何安装 Visual Studio 2015 PlatformSDK?

标签 python-3.x visual-studio scrapy pip

当我用 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 ToolsVisual Studio Extensibility Tools Update 3成功,但仍然没有 PlatformSDK .

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

最佳答案

有一次我在安装另一个需要 Windows Visual C++ 的 Python 程序 (QARK) 时遇到问题。事实上,在 cmd/PowerShell 中,我被告知缺少所需的版本。
所以我遵循了 THIS 上写的内容网站,所以我不再有这个问题(为了安全,我也重新启动了):

  1. Install using any ONE of these choices:
  2. Select: Workloads → C++ build tools.
  3. 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/

相关文章:

python-3.x - multilist = [[0 代表范围内的列(colNum)]代表范围内的行(rowNum)]

c# - SSIS 脚本组件在手动打开之前无法加载程序集

python - Scrapy嵌套页面爬取

python - 在 Windows 服务器上用 scrapy 阻塞线程

java - 在 (debian 9) python :3 docker image using terminal commands 上安装 java 8

python - Python3x 中的字符串与 Python2.x 中的字符串不同,但它仍然有效

python - Dijkstra算法随机选择具有相同最小权重的相邻节点

visual-studio - 更新 DLL 引用

.net - .cshtml Razor 文件中的 TypeScript

python - 使用 Scrapy 和 Splash 迭代 AJAX 页面上的选定项目