Failed to install Python 2.7.9 on Google computer instance to calculate

I launched a new instance of the Google kernel. It launches Windows 2008 R2 Service Pack 1.

I download and try to run the Python.msi installer for version 2.7.9, and it does not work with this error:

The problem with this Windows Installer package. The program required to complete this installation failed to start. Contact your support staff or package provider.

I see this error for both the 64-bit and the 32-bit installer.

Has anyone else seen this or knew about work?

+6
source share
4 answers

I reproduced your problem and I found two workarounds:

+9
source
  • Install python EXCEPT "pip"
  • Run python install msi and select "change"
  • Select "pip" and install pip It will work ...

I think this is a priority issue in the msi package ... the package seems to be trying to install pip before installing python.exe. Therefore, the pip cannot be set ...

+6
source

I am using the 64-bit version of Windows 8.1. I had 2.7.11 and then I tried installing PIP also through the Chocolatey PIP package .

I think my installation was messed up because I was trying to install Python 3.4 as well as Python 2.

Then I deleted all the Python 2 and Python 3 files, trying to get rid of this.

What worked for me:

  • Editing environment variables of both System and User to remove any PYTHONHOME or PYTHONPATH variables
  • I also deleted the path that I had to python2 in the PATH environment variable
  • Now (as mentioned in the Python Issue 22329 ), after deleting the environment variables, you can go to "Programs and Features", click Python 2.7.11 (64-bit), and then click "Restore" - this worked as I would expect without mistakes.
  • Now, finally, I was able to go to "Programs and Features", click on Python 2.7.11 (64-bit), and then "Uninstall."

Change I believe this is due to this PYTHON_HOME answer to the problem with Python 3.4

+1
source

The problem seems to be related to dependencies, try installing "Microsoft Visual C ++ 2008 Redistributable Package Service Pack 1 (x64)"

0
source

Source: https://habr.com/ru/post/982193/


All Articles