Solving install issues with Python 3.4 on Windows

ChrisProsser picture ChrisProsser · Apr 28, 2014 · Viewed 32.1k times · Source

I have recently tried to install Python 3.4 as an alternative installation on my system in an attempt to familiarise myself before migrating code. My main Python installation is 2.7.6.

I tried the 64 bit installer for Windows, but it came up with an error message

There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor.

After this the install is rolled back (from the point shown below):

enter image description here

I have eventually found a solution to this posted below and decided to share in case anyone else was having the same issue.

Answer

ChrisProsser picture ChrisProsser · Apr 28, 2014

After some looking online I found (here) that the issue was related to conflicting pip installs (I have a version already installed for Python 2.7 and apparently this is not compatible with the version that ships with Python 3.4.

To get around this issue I simply de-selected pip from the install options shown below and the install went ahead smoothly:

enter image description here

Run installer again and select PIP installation.

If the PIP fails to install with the same error, you may want to check environmental variables using a tool like http://eveditor.com/ which enables to check whether they are valid. If you had another version installed before, you most likely have wrong PYTHONHOME and PYTHONPATH variables. Fix them by setting them to relevant paths. e.g. PYTHONHOME=C:\python27 and PYTHONPATH=c:\python27\Lib

You will then be able to run and install PIP.