windows-build-tools icon indicating copy to clipboard operation
windows-build-tools copied to clipboard

Hangs on Python is already installed, not installing again.

Open dy opened this issue 6 years ago • 6 comments

PS C:\Windows\system32> npm i --global --production windows-build-tools

> [email protected] postinstall C:\Users\dmitry\AppData\Roaming\npm\node_modules\windows-build-tools
> node ./dist/index.js



Downloading vs_BuildTools.exe
[>                                            ] 0.0% (0 B/s)
Downloaded vs_BuildTools.exe. Saved to C:\Users\dmitry\.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 ----------
2018-09-23T22:55:07 : Verbose : Calling SetupEngine.Installer.InstallProduct. [channelId: VisualStudio.15.Release, produ
ctId: Microsoft.VisualStudio.Product.BuildTools, installationPath: 'C:\Program Files (x86)\Microsoft Visual Studio\2017\
BuildTools']
2018-09-23T23:04:50 : Verbose : Relaunching the application with new commands. Args: ["vs_installershell.exe","/finalize
Install","install","--in","C:\\ProgramData\\Microsoft\\VisualStudio\\Packages\\_bootstrapper\\vs_setup_bootstrapper_2018
09232304487739.json","--norestart","--quiet","--includeRecommended","--add","Microsoft.VisualStudio.Workload.VCTools","-
-locale","en-US","--activityId","7c3e27bd-ce5f-489f-81c3-7267a3e03687"]
2018-09-23T23:04:50 : Error : It looks like you're installing or modifying another product right now.
Please wait until all other operations are finished and try again.
------------------- Python --------------------
Python 2.7.10 is already installed, not installing again.

Windows 7, [email protected], [email protected]

dy avatar Sep 23 '18 20:09 dy

@dy the problem here is not Python but Visual Studio, it detects another installation is already running. IF you were installing or modifying any edition of VS2017, please wait for it to finish and try again.

Another way to make this happen is starting the installation of windows-build-tools, cancelling it and starting it again. In this case it will keep installing in the background, and should be ready after a while.

joaocgreis avatar Sep 25 '18 03:09 joaocgreis

Just hit the same problem and here's what fixed for me:

  1. Uninstall Python 2.7 if installed separately
  2. New PowerShell Window as Administrator
  3. npm i --global --production --verbose windows-build-tools

imlucas avatar Oct 15 '18 16:10 imlucas

Can confirm that I kept experiencing a hang with a pre-existing version of Python2.7, uninstalling 2.7 completeling and allowing the windows build tools to perform the install got past it. Unfortunate bug though.

aaclayton avatar Oct 20 '18 17:10 aaclayton

I use node v10.15.3, npm 6.4.1, and install windows-build-tools with npm install --global --production windows-build-tools, and it still hang for long time. The version of windows-build-tools I installed is 5.1.0

yunnysunny avatar Apr 27 '19 04:04 yunnysunny

I had this issue too for win 7 ultimate 64 bit I have to update the windows sp1 You can update through this url Or you can use "windows update" app (click on the start menu and type "windows update") run the update to install the service package supported After that you can run the code again npm install --global --production windows-build-tools If you want you can also manually install VS and python the npm install --global --production windows-build-tools will download the application on the default location C:\Users\{userName}\.windows-build-tools

Hope this helps you

Salman2301 avatar Jun 03 '19 09:06 Salman2301

For those who are still stuck. Try this: https://github.com/felixrieseberg/windows-build-tools/issues/172#issuecomment-484091133

It solved mine. And of many others :)

chitraanshpopli avatar May 30 '20 07:05 chitraanshpopli