Skip to content
This repository has been archived by the owner on Sep 11, 2021. It is now read-only.

Hangs on Python is already installed, not installing again. #147

Open
dy opened this issue Sep 23, 2018 · 6 comments · May be fixed by #225
Open

Hangs on Python is already installed, not installing again. #147

dy opened this issue Sep 23, 2018 · 6 comments · May be fixed by #225

Comments

@dy
Copy link

dy commented Sep 23, 2018

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

> windows-build-tools@5.0.0 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, node@8.11.1, npm@6.4.1

@joaocgreis
Copy link
Contributor

@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.

@imlucas
Copy link

imlucas commented Oct 15, 2018

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

@aaclayton
Copy link

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.

@yunnysunny
Copy link

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

@Salman2301
Copy link

Salman2301 commented Jun 3, 2019

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

@chitraanshpopli
Copy link

For those who are still stuck. Try this: #172 (comment)

It solved mine. And of many others :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants