Come Installare Windows Installer

Congratulations you have now installed Python and PIP on Windows 10. Some users have been having some issues with installing Python, I will list out some solutions as and when I come across them. Error: The TARGETDIR variable must be provided when invoking this installer. Install Redmine as a Windows service, at the command prompt: 'mongrel_rails service::install -N Redmine -c [your redmine folder] -p [portno] -e production', replacing [your redmine folder] with the full path to the Redmine folder in the filesystem, and the [portno] being the port you'd like redmine to server on, e.g. 80 for standard http port 80. Launch Mixed Reality Portal. After you plug in your Windows Mixed Reality headset and the driver installs successfully, the Mixed Reality Portal (MRP) will automatically launch on your Desktop. If this does not happen automatically, you can always launch Mixed Reality portal from the Start menu ( Start > Mixed Reality Portal ).

Windows Installer Features

Python 2.5 is distributed as a Microsoft Installer (MSI) file on Windows. Typically, packages are installed by double-clicking them in the file explorer. However, with the msiexec.exe command line utility, additional features are available, like non-interactive installation and administrative installation.

Non-interactive Installation

With the command line installation can be initiated programmatically. Additional parameters can be passed at the end of this command line, like

Limited user interface

The amount of user interface that installer displays can be controlled with /q options, in particular:
  • /qn - No interface
  • /qb - Basic interface - just a small progress dialog
  • /qb! - Like /qb, but hide the Cancel button
  • /qr - Reduced interface - display all dialogs that don't require user interaction (skip all modal dialogs)
  • /qn+ - Like /qn, but display 'Completed' dialog at the end
  • /qb+ - Like /qb, but display 'Completed' dialog at the end

Target directory

The property TARGETDIR determines the root directory of the Python installation. For example, a different installation drive can be specified with The default TARGETDIR is [WindowsVolume]Python<version>.

Installation for All Users

Adding causes an installation for all users. By default, the non-interactive installation install the package just for the current user, and the interactive installation offers a dialog which defaults to 'all users' if the user is sufficiently privileged.

Feature Selection

A number of properties allow selection of features to be installed, reinstalled, or removed. The set of features for the Python installer is
  • DefaultFeature - install the interpreter proper, plus the core libraries
  • Extensions - register extensions (.py, .pyc, etc)
  • TclTk - install Tkinter, and IDLE
  • Documentation - install documentation
  • Tools - install the Tools/ directory
  • Testsuite - install Lib/test/
In addition, ALL specifies all features. All features depend on DefaultFeature, so installing any feature automatically installs the default feature as well. The following properties control features to be installed or removed
  • ADDLOCAL - list of feature to be installed on the local machine
  • REMOVE - list of features to be removed
  • ADDDEFAULT - list of features added in their default configuration (which is local for all Python features)
  • REINSTALL - list of features to be reinstalled/repaired
  • ADVERTISE - list of feature for which to perform an advertise installation
There are a few additional properties available; see the MSDN documentation for details.

With these options, adding installs the interpreter itself and registers the extensions, but does not install anything else.

Uninstallation

With python can be uninstalled. It is not necessary to have the MSI file available for uninstallation; alternatively, the package or product code can also be specified. You can find the product code by looking at the properties of the Uninstall shortcut that Python installs in the start menu.

Administrative installation

With an 'administrative' (network) installation can be initiated. The files get unpacked into the target directory (which should be a network directory), but no other modification is made to the local system. In addition, another (smaller) msi file is generated in the target directory, which clients can then use to perform a local installation (future versions may also offer to keep some features on the network drive altogether).

Currently, there is no user interface for administrative installations, so the target directory must be passed on the command line.

There is no specific uninstall procedure for an administrative install - just delete the target directory if no client uses it anymore.

Advertisement

With it would be possible, in principle, to 'advertise' python to a machine (with /ju to a user). This would cause the icons to appear in the start menu, and the extensions to become registered, without the software actually being installed. The first usage of a feature would cause that feature to be installed.

The Python installer currently supports just advertisement of start menu entries, but no advertisement of shortcuts.

Automatic Installation on a Group of Machines

With Windows Group Policy, it is possible to automatically install Python an a group of machines. To do so, perform the following steps:
  1. Log on to the domain controller
  2. Copy the MSI file into a folder that is shared with access granted to all target machines.
  3. Open the MMC snapin 'Active Directory users and computers'
  4. Navigate to the group of computers that need Python
  5. Open Properties
  6. Open Group Policies
  7. Add a new polices, and edit it
  8. In Computer Configuration/Software Installation, chose New/Package
  9. Select the MSI file through the network path
  10. Optionally, select that you want the Python to be deinstalled if the computer leaves the scope of the policy.
Group policy propagation typically takes some time - to reliably deploy the package, all machines should be rebooted.
Active4 months ago

When I try installing the PyQt5 on Windows using the command

I get this error:

I got the pyQt5 from PyQt5 Download.

How can I install PyQt5?

Update:

I installed Qt 5.0.2 for Windows 64-bit (VS 2012, 500 MB) from the Qt Download page and now I have this error:

And when I execute the command python configure.py --verbose:

I added C:Program Files (x86)Microsoft Visual Studio 11.0VCbin (contains nmake.exe) to PATH and I got this error:

MarianD
4,6536 gold badges14 silver badges33 bronze badges
Victor LellisVictor Lellis
9191 gold badge11 silver badges22 bronze badges

11 Answers

The easiest way to install PyQt is to just use the installer (Link in your answer, step #5). If you install python 3.3, the installer will add all of the PyQt5 extras to that python installation automatically. You won't need to do any compiling (none of: nmake, nmake install, python configure).

All of the build options are available for if you need a custom install (for instance, using a different version of python, where there isn't an installer provided by riverbank computing).

If you do need to compile your own version of PyQt5, the steps (as you have found) are here, but assume you have python and a compiler installed and in your path. The installed and in your path have been where you have been running into trouble it seems. I'd recommend using the installer version, but you need to install python 3.3 first.

Brett StottlemyerBrett Stottlemyer
1,4343 gold badges17 silver badges33 bronze badges

Mainly I use the following command under the cmd

And it works with no problem!

Malek B.Malek B.
8281 gold badge9 silver badges10 bronze badges

First try this in your Windows cmd window:

If that is successful, it will look something like this:

If that did not work, you might try this link from SourceForge.

How to find the installer that's right for you?

First, determine what version of Python you have and whether you have 32-bit or 64-bit Python.Next, open one of the directories. I'm on Python 3.5 64-bit so I'm looking for a .exe with those specs. When you open a directory on SourceForge, you will see some directories with ONLY .zip or .tar.gz. That's not what you're looking for. A good indication of which directory you should click is given by the 'Downloads/Week' column.I'll open the PyQt-5.6 directory in my case.

Here we notice some .exe files:

I know these are Python 3.5 by Py3.5 in the file name. I am also looking for the 64-bit version so I'll download PyQt5-5.6-gpl-Py3.5-Qt5.6.0-x64-2.exe. Final answer!

Note: if you try to install a version that's not compatible with your system, a dialog box will appear immediately after running the .exe. That's an indication that you've chosen the wrong one. I'm not trying to sound like a dbag... I did that several times!

To test a successful install, in your Python interpreter, try to import:

JaradJarad
5,9146 gold badges45 silver badges73 bronze badges

I found a partial solution...

Steps to install pyQt5 (with VS 2012) on Windows:

1) Install the binary file Qt 5.0.2 for Windows 64-bit (VS 2012, 500 MB) from here.

2) Get sip-4.14.7 (development snapshot) from here.

3) Extract the file and open the Developer Command Prompt for VS2012.

4) Execute these commands (in sip folder):

5) Get the pyQt5 from here.

6) Extract the file and open the VS2012 x64 Native Tools Command Prompt.

Come Installare Windows Installer Su Windows 7

7) Execute these commands:

UPDATE: When execute these commands below is not working:

Solution: I will try use pyQt4 with Qt5... because pyQt5 is in development and doesn't have support/documentation yet.

Victor LellisVictor Lellis
9191 gold badge11 silver badges22 bronze badges

One of the most (probably the most) easiest way to install site-packages like PyQt5 is installing one of the versions of Anaconda. You can just install many of site-packages by installing it. List of avaliable site-packages with Anaconda versions can be checked here.

  1. Dowload Anaconda3 or Anaconda2
  2. Install it.
  3. Add PyQt5's path inside Anaconda installation to your System Environment Variables.

For example:

  1. It is ready to use.
cengineer

Come Installare Windows 10 Gratis

cengineer
4581 gold badge7 silver badges15 bronze badges

I'm new to both Python and PyQt5. I tried to use pip, but I was having problems with it using a Windows machine. If you have a version of Python 3.4 or above, pip is installed and ready to use like so:

That's of course assuming that the path for Python executable is in your PATH environment variable. Otherwise include the full path to Python executable (you can type where python to the Command Window to find it) like:

MarianD
4,6536 gold badges14 silver badges33 bronze badges
Felipe CentenoFelipe Centeno

Another command under the cmd is:

easy_install pyqt5

TrigremmTrigremm

If you're using Windows 10, if you use

in the command prompt it should download fine. Depending on either the version of Python or Windows sometimes python -m pip install pyqt5 isn't accepted, so you have to use py instead. pip is a good way to download a lot of stuff, so I'd recommend that.

NotEvenTheRainNotEvenTheRain

If you are using canopy, use the package manager to install qt (and or pyqt)

Ivan_ugIvan_ug

You can easily install it using Anaconda. At first install Anaconda or Miniconda on you system (download from here) and then install the pyqt as follow:

It works for both version of python (2 and 3).

Ali MirzaeiAli Mirzaei
7521 gold badge5 silver badges22 bronze badges

To install the GPL version of PyQt5, run (see PyQt5 Project):

Come installare windows su mac

This will install the Python wheel for your platform and your version of Python (assuming both are supported).

(The wheel will be automatically downloaded from the Python Package Index.)

The PyQt5 wheel includes the necessary parts of the LGPL version of Qt. There is no need to install Qt yourself.

(The required sip is packaged as a separate wheel and will be downloaded and installed automatically.)

Note:

If you get an error message saying something as

Come Installare Windows 7 Senza Product Key

then you are probably using an unsupported version of Python.

MarianDMarianD
4,6536 gold badges14 silver badges33 bronze badges

Windows Installer 5.0 Download

Not the answer you're looking for? Browse other questions tagged pythonwindowsqtnmakepyqt5 or ask your own question.