python - 如何解决安装构建工具的问题

标签 python node.js windows powershell build-tools

我尝试在我的操作系统 (Windows 10) 上安装构建工具,但它始终保持相同的状态。点赞图片Build tools error image

PS C:\WINDOWS\system32> npm install --global windows-build-tools
npm WARN deprecated <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="8ef9e7e0eae1f9fda3ecfbe7e2eaa3fae1e1e2fdcebba0bca0bc" rel="noreferrer noopener nofollow">[email protected]</a>: Node.js now includes build tools for Windows. You probably no longer need this tool. See https://github.com/felixrieseberg/windows-build-tools for details.
npm WARN deprecated <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="8ffdeafefaeafcfbcfbda1b7b7a1bd" rel="noreferrer noopener nofollow">[email protected]</a>: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="fd959c8fd08b9c9194999c89928fbdc8d3ccd3c8" rel="noreferrer noopener nofollow">[email protected]</a>: this library is no longer supported
npm WARN deprecated <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ea9f9f838eaad9c4dec4da" rel="noreferrer noopener nofollow">[email protected]</a>: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.

> <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="fd8a949399928a8ed09f88949199d0899292918ebdc8d3cfd3cf" rel="noreferrer noopener nofollow">[email protected]</a> postinstall C:\Users\user\AppData\Roaming\npm\node_modules\windows-build-tools
> node ./dist/index.js



Downloading python-2.7.15.amd64.msi
[>                                            ] 0.0% (0 B/s)
Downloaded python-2.7.15.amd64.msi. Saved to C:\Users\user\.windows-build-tools\python-2.7.15.amd64.msi.
Downloading vs_BuildTools.exe
[>                                            ] 0.0% (0 B/s)
Downloaded vs_BuildTools.exe. Saved to C:\Users\user\.windows-build-tools\vs_BuildTools.exe.

Starting installation...
Launched installers, now waiting for them to finish.
This will likely take some time - please be patient!

Status from the installers:
---------- Visual Studio Build Tools ----------
Still waiting for installer log file...
------------------- Python --------------------
Successfully installed Python 2.7


有什么问题吗。无法安装。

最佳答案

来自 NPM 页面 https://www.npmjs.com/package/windows-build-tools

This package has been deprecated
Author message:

Node.js now includes build tools for Windows. You probably no longer need this tool. See https://github.com/felixrieseberg/windows-build-tools for details.

如果您还没有进行构建,则只需自行安装 python

关于python - 如何解决安装构建工具的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69282472/

相关文章:

python - 正则表达式中的原始字符串表示法

javascript - 尽管有多个错误,但 AJV 只返回一个错误

windows - 如何仅在驱动器 C :\? 上向 Shell 菜单添加条目

windows - 在挂载目录上运行时出现 cmake 错误

python - 使用 python 更改文件权限的 Chmod 问题

python - Heroku 上的 IPython 笔记本

python - 您可以将 self.assertRaises 用作异步上下文管理器吗?

python - 如何配置 IPython 以与普通 Python REPL 相同的方式执行单元 block ?

javascript - AWS-IoT-SDK-JS-v2 连接问题 - AWS CRT 二进制文件不存在于以下任何位置

ruby-on-rails - Ruby on Rails - Autoprefixer 不支持 Node v4.9.1。更新它。怎么修?