Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Solving install issues with Python 3.4 on Windows

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.

like image 593
ChrisProsser Avatar asked Apr 28 '14 19:04

ChrisProsser


People also ask

What to do if Python is not installing?

Check again that the Python path is installed properly and try running the command "py" or "python" in the Command Prompt to see if it starts. If it doesn't start and Python is installed on your computer, manually add Python's install location to your PATH.

How do I ensure Python is installed on Windows?

Step 4 − Verify Python is installed on WindowsOpen the command prompt. Type 'python' and press enter. The version of the python which you have installed will be displayed if the python is successfully installed on your windows.

How to install Python on Windows 10?

How to Install Python on Windows? 1 Step 1: Download Python binaries from python.org. 2 Step 2: Install the binaries. 3 Step 3: Add Python to system environment variables. 4 Step 4: Install pip. 5 Step 5: [Optional] Install virtualenv using pip. More items

Why does Python fail to install on Windows 7?

The Python setup may fail if you don’t have Windows Service Pack 1 (SP1) installed on your computer. It is a requirement for installing Python. Download Windows Service Pack 1. If it states an unspecified error, try downloading KB2999226. It is an update for Windows 7. For other issues, check the log file.

What is included in the python installer?

It also includes the IDLE (Integrated Development Environment), pip, and the official documentation. It also creates shortcuts. This option allows you to choose the features that you want. You may also specify the location to install the directory at. Other than these two options, the installer also asks you if you want to add Python to PATH.

What version of Python does pyqt5-tools support?

hint: See above for details. When you look at the pypi page for PyQt5-tools, you will see that the [atest release of Python supported is 3.9. pip tries to install it from source, which fails. The following options are open to you:


1 Answers

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.

like image 143
ChrisProsser Avatar answered Sep 20 '22 18:09

ChrisProsser