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):
I have eventually found a solution to this posted below and decided to share in case anyone else was having the same issue.
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.
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? 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
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.
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.
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:
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:
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With