Feeling really stupid, right now, but the title says it all:
How do you start the QtDesigner?
I've installed PyQt5 via pip and I believe to have identified the directory it's been installed in as
C:\Users\%username%\AppData\Local\Programs\Python\Python36\Lib\site-packages\PyQt5
Now what? There are a lot of .pyd files, some .dll's, too, but nothing executable (well, except a QtWebEngineProcess.exe in ...\site-packages\PyQt5\Qt\bin, but that doesn't sound like what I'm looking for.
I struggled with this as well. The pyqt5-tools approach is cumbersome so I created a standalone installer for Qt Designer. It's only 40 MB. Maybe you will find it useful!
If you are working in python virtual environment, in the command window
>>qt5-tools designer
can open designer window.
The latest PyQt5 wheels (which can be installed via pip) only contain what's necessary for running applications, and don't include the dev tools. This applies to PyQt versions 5.7 and later. For PyQt versions 5.6 and earlier, there are binary packages for Windows that also include the dev tools, and these are still available at sourceforge. The maintainer of PyQt does not plan on making any further releases of such binary packages, though - only the runtime wheels will now be made available, and there will be no official wheels for the dev tools.
In light of this, someone has created an unofficial pyqt5-tools wheel (for Windows only). This appears to be in it's early stages, though, and so may not keep up with recent PyQt5 releases. This means that it may not always be possible to install it via pip. If that is the case, as a work-around, the wheel files can be treated as zip files and the contents extracted to a suitable location. This should then allow you to run the designer.exe file that is in the pyqt5-tools/designer folder.
Finally, note that you will also see some zip and tar.gz files at sourceforge for PyQt5. These only contain the source code, though, so will be no use to you unless you intend to compile PyQt5 yourself. And just to be clear: compiling from source still would not give you all the Qt dev tools. If you go down that route, you would need to install the whole Qt development kit separately as well (which would then get you the dev tools).
The Qt designer is not installed with the pip installation.
You can either download the full download from sourceforge (probably won't be the last pyqt release, and might be buggy on presence of another installation, like yours) or install it with another (unofficial) pypi package - pyqt5-tools (pip install pyqt5-tools), then run the designer from the following subpath of your python directory -
...\Python36\Lib\site-packages\pyqt5-tools\designer\designer.exe
pip install pyqt5-tools
Then restart the cmd, just type "designer" and press enter.
If you cannot see the Designer , just look into this path "Lib\site-packages\qt5_applications\Qt\bin" for designer.exe and run it.
PyQt5 works after pip install PyQt5Designer
pip install pyqt5-tools
working in python 3.7.4
wont work in python 3.8.0
You can also install Qt Designer the following way:
Install latest Qt (I'm using 5.8) from Qt main site
Make sure you include "Qt 5.8 MinGW" component
Qt Designer will be installed in C:\Qt\5.8\mingw53_32\bin\designer.exe
Note that the executable is named "designer.exe"
For anyone stumbling across this post in 2021+ and finding the answers outdated: QT Designer is now in the qt5-applications package, under Qt\bin\. On Windows this means the default path, for CPython 3.9 using the Python.org installer, is %APPDATA%\Python\Python39\site-packages\qt5_applications\Qt\bin\designer.exe.
Download the module using pip:
pip install PyQt5Designer
Then, for anaconda users, open:
C:\ProgramData\AnacondaX\Lib\site-packages\QtDesigner\designer.exe
For python users:
64-bit:
C:\Program Files\PythonXX\Lib\site-packages\QtDesigner\designer.exe
32-bit:
C:\Program Files (x86)\PythonXX\Lib\site-packages\QtDesigner\designer.exe
Try using:
pip install pyqt5-tools
Now you'd find the designer in site-packages/pyqt5-tools.
If you are installing the pyqt5-tools then you can find the designer.exe file inside:
<python_installation>\Lib\site-packages\Qt
If you cannot locate the file or have any issues opening this directly, then open a command prompt and type:
<python_installation>\Scripts\pyqt5designer.exe
For Qt Designer 6 this worked for me thanks for that protip from #Bhaskar
pip install pyqt6-tools
Then started:
qt6-tools designer
End up with nice working lightweight Qt Designer 6.0.1 version
# pip install pyqt6-tools
Collecting pyqt6-tools
Using cached pyqt6_tools-6.1.0.3.2-py3-none-any.whl (29 kB)
Collecting pyqt6-plugins<6.1.0.3,>=6.1.0.2.2
Downloading pyqt6_plugins-6.1.0.2.2-cp39-cp39-manylinux2014_x86_64.whl (77 kB)
|████████████████████████████████| 77 kB 492 kB/s
Collecting python-dotenv
Using cached python_dotenv-0.19.2-py2.py3-none-any.whl (17 kB)
Collecting pyqt6==6.1.0
Downloading PyQt6-6.1.0-cp36.cp37.cp38.cp39-abi3-manylinux_2_28_x86_64.whl (6.8 MB)
|████████████████████████████████| 6.8 MB 1.0 MB/s
Requirement already satisfied: click in ./.pyenv/versions/3.9.6/lib/python3.9/site-packages (from pyqt6-tools) (8.0.1)
Collecting PyQt6-sip<14,>=13.1
Downloading PyQt6_sip-13.2.0-cp39-cp39-manylinux1_x86_64.whl (307 kB)
|████████████████████████████████| 307 kB 898 kB/s
Collecting PyQt6-Qt6>=6.1.0
Using cached PyQt6_Qt6-6.2.2-py3-none-manylinux_2_28_x86_64.whl (50.0 MB)
Collecting qt6-tools<6.1.0.2,>=6.1.0.1.2
Downloading qt6_tools-6.1.0.1.2-py3-none-any.whl (13 kB)
Collecting click
Downloading click-7.1.2-py2.py3-none-any.whl (82 kB)
|████████████████████████████████| 82 kB 381 kB/s
Collecting qt6-applications<6.1.0.3,>=6.1.0.2.2
Downloading qt6_applications-6.1.0.2.2-py3-none-manylinux2014_x86_64.whl (80.5 MB)
|████████████████████████████████| 80.5 MB 245 kB/s
Installing collected packages: qt6-applications, PyQt6-sip, PyQt6-Qt6, click, qt6-tools, pyqt6, python-dotenv, pyqt6-plugins, pyqt6-tools
Attempting uninstall: click
Found existing installation: click 8.0.1
Uninstalling click-8.0.1:
Successfully uninstalled click-8.0.1
Successfully installed PyQt6-Qt6-6.2.2 PyQt6-sip-13.2.0 click-7.1.2 pyqt6-6.1.0 pyqt6-plugins-6.1.0.2.2 pyqt6-tools-6.1.0.3.2 python-dotenv-0.19.2 qt6-applications-6.1.0.2.2 qt6-tools-6.1.0.1.2
you should find it here if your using anaconda
C:\Users\%username%\anaconda3\envs\untitled\Lib\site-packages\qt5_applications\Qt\bin
By far the easiest way to do this is to use this installer:
https://build-system.fman.io/qt-designer-download
It seems as though the other answers here are now out of date, not to mention confusing for someone who is just starting out with this. Sourceforge no longer has this package, I installed the tools as suggested but nothing appeared in the scripts folder, and none of the pip commands above worked either.
I was having the same problem, however I was able to install using the Pygame module installation code, changing some information:
pygame:
py -m pip install -U pygame --user
PyQt5:
py -m pip install -U pyqt5-tools --user
In a Windows' terminal, activate your virtual env where you have installed PyQt5 then just type designer.
You can create a shortcut by finding its path with where designer
So I am trying to install pylint using pip, as my work machine is offline I have downloaded pylint using pip and transferred this using a CD. As part of pylint download it also brought down asteroid, colorama, isort, lazy_object_proxy, McCabe, six, typed ast and wrapt.
However when running the install for pylint using the following command inside the directory with all the above files in:
python -m pip install --no-index --find-links . -r requirements.txt
This starts to work with it collecting pylint, isort and a couple of others, however after collecting asteroid it goes to collect lazy object proxy (which is in the directory) and gives the following error:
Could not find a version that satisfies the requirement lazy-object-proxy (from asteroid<3,>=2.2.0->pylint->-r requirements.txt (line 1)) (from versions: ) No matching distribution found for lazy-object-proxy (from asteroid<3,>=2.2.0->pylint->-r requirements.txt (line 1))
The version of lazy object proxy downloaded is 1.4.1
Im fairly new to this so maybe there is something in this error that highlights why it doesn't see or like the version that is downloaded and in the directory, any help would be much appreciated.
OS is windows 7, running python version 3.6.0
NOTE: even trying to just install lazy object proxy on its own fails saying it doesn't exist, its like its not there although it is in the folder.
I am trying to install the gmpy2 package as its an requirement for the PHE package. As suggested in "GMPY2 not installing", I have tried to install it via pre-compliled binaries from http://www.lfd.uci.edu/~gohlke/pythonlibs/.
However when I try to install it via
pip install gmpy2-2.0.8-cp36-cp36m-win32.whl
I get the following result:
C:\Users\adria\Desktop>pip install gmpy2-2.0.8-cp36-cp36m-win32.whl
Requirement 'gmpy2-2.0.8-cp36-cp36m-win32.whl' looks like a filename, but the file does not exist
Processing c:\users\adria\desktop\gmpy2-2.0.8-cp36-cp36m-win32.whl
Exception:
Traceback (most recent call last): (...)
Is it a problem that the download from http://www.lfd.uci.edu/~gohlke/pythonlibs/ is saved as zip file?
I use Python 3.6.3 on Win10.
If you try to install without specifying the file extension (i,e : pip install gmpy2-2.0.8-cp36-cp36m-win_amd64) it won't work cause it will try to download the package from pypi repository:
C:\Users\bobolafrite\Downloads>pip install gmpy2-2.0.8-cp36-cp36m-win_amd64
Collecting gmpy2-2.0.8-cp36-cp36m-win_amd64
Could not find a version that satisfies the requirement gmpy2-2.0.8-cp36-cp36m-win_amd64 (from versions: )
No matching distribution found for gmpy2-2.0.8-cp36-cp36m-win_amd64
But if you try with the extension (i,e : pip install gmpy2-2.0.8-cp36-cp36m-win_amd64.whl)
C:\Users\bobolafrite\Downloads>pip install gmpy2-2.0.8-cp36-cp36m-win_amd64.whl
Processing c:\users\bobolafrite\downloads\gmpy2-2.0.8-cp36-cp36m-win_amd64.whl
Installing collected packages: gmpy2
Successfully installed gmpy2-2.0.8
I have been trying to install zipline on OSX 10.11.2.
The pip install fails with this error:
$ pip install zipline
Collecting zipline
Using cached zipline-0.8.3-cp27-none-macosx_10_10_x86_64.whl
Collecting six==1.9.0 (from zipline)
Using cached six-1.9.0-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): python-dateutil==2.4.2 in /usr/local/lib/python2.7/site-packages (from zipline)
Collecting patsy==0.4.0 (from zipline)
Using cached patsy-0.4.0-py2.py3-none-any.whl
Collecting numexpr==2.4.3 (from zipline)
Using cached numexpr-2.4.3-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Collecting cyordereddict==0.2.2 (from zipline)
Using cached cyordereddict-0.2.2.tar.gz
Collecting bcolz==0.10.0 (from zipline)
Using cached bcolz-0.10.0.tar.gz
Complete output from command python setup.py egg_info:
* Found Cython 0.23.4 package installed.
.. **ERROR:: You need numpy 1.7 or greater to run bcolz!**
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/sj/py2gp2555d15c757mxtpwmn80000gn/T/pip-build-se3cq5/bcolz
I checked my numpy version, it's 1.10.2:
$ python
Python 2.7.11 (default, Dec 5 2015, 14:44:53)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.1.76)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> numpy.version.version
'1.10.2'
I tried installing bcolz separately (and it installed successfully) but that didn't solve the problem.
$ pip install -I zipline
didn't work either.
Any ideas about what I should do to install zipline?
EDIT: I ran pip install bcolz and the version installed was 0.12.1:
/usr/local/lib/python2.7/site-packages/bcolz$ cat version.py
# coding: utf-8
# file generated by setuptools_scm
# don't change, don't track in version control
version = '0.12.1'
One information you do not provide is the version of bcolz you tried to install separately. If it is not the 0.10.0, as zipline requirements file pins the version of bcolz (see here), if a newer version of bcolz has been installed (it will be the case if you just run pip install bcolz), the first thing the next install of zipline will do is to downgrade your bcolz installed version.
If you succeed in installing the version 0.10.0 of bcolz, the outputted error must be different and it would help to have it!
[EDIT]: so by running pip install bcolz==0.10.0, you're able to reproduce the same issue. It appears that due to a broken version comparison, bcolz, in its 0.10.0 version will be unable to work with version of numpy starting from 1.10. The only solution is then to downgrade numpy, and ping zipline developers so that they bump the used version of bcolz.
Answering my question in case anyone had the same issue. I ended up installing zipline using Anacaonda instead and it worked out alright. The package changes were:
The following NEW packages will be INSTALLED:
bcolz: 1.0.0-py27_0
click: 6.6-py27_0
contextlib2: 0.4.0-py27_0
cyordereddict: 0.2.2-py27_0
logbook: 0.12.5-py27_0
zipline: 0.9.0-np19py27_0
The following packages will be UPDATED:
bottleneck: 1.0.0-np110py27_0 --> 1.0.0-np19py27_0
numba: 0.24.0-np110py27_0 --> 0.24.0-np19py27_0
patsy: 0.4.0-np110py27_0 --> 0.4.0-np19py27_0
scipy: 0.17.0-np110py27_0 --> 0.17.0-np19py27_0
statsmodels: 0.6.1-np110py27_0 --> 0.6.1-np19py27_0
The following packages will be DOWNGRADED:
anaconda: 4.0.0-np110py27_0 --> custom-py27_0
astropy: 1.1.2-np110py27_0 --> 1.0.4-np19py27_0
h5py: 2.5.0-np110py27_4 --> 2.5.0-np19py27_3
matplotlib: 1.5.1-np110py27_0 --> 1.4.3-np19py27_3
numexpr: 2.5-np110py27_0 --> 2.4.6-np19py27_0
numpy: 1.10.4-py27_0 --> 1.9.3-py27_1
pandas: 0.18.0-np110py27_0 --> 0.16.2-np19py27_0
pytables: 3.2.2-np110py27_1 --> 3.2.2-np19py27_0
scikit-image: 0.12.3-np110py27_0 --> 0.11.3-np19py27_0
scikit-learn: 0.17.1-np110py27_0 --> 0.16.1-np19py27_0
Have been having exactly the same problem. Just to add to the answer. This is the terminal command that has worked for me : conda install -c quantopian zipline=1.0.2
I have been trying to install numpy using pip on Windows.
But it doesn't seem to be working.
I tried installing numpy and t told me that microsoft C++ package is missing and asked me to install it. I did that and tried re-installing numpy. But this time it doesn't seems to work. It doesn't seem to forward after this point
C:\Users\neil>pip install numpy
Collecting numpy
Using cached numpy-1.9.1.tar.gz
Running from numpy source directory.
Installing collected packages: numpy
Running setup.py install for numpy
Then I tried installing scipy, even that doesn't seem to move forward after this point.
C:\Users\neil>pip install scipy
Collecting scipy
Downloading scipy-0.14.1.tar.gz (10.9MB)
100% |################################| 10.9MB 284kB/s ta 0:00:01
You could use Anaconda. Anaconda is a completely free Python distribution (including for commercial use and redistribution). It includes over 195 of the most popular Python packages for science, math, engineering, data analysis (including numpy and scipy).
After downloading the Anaconda installer, double click on the installer application icon and run it.
Follow the instructions in the installer.
The installer is also capable of running in silent mode, without bringing up the graphical interface. To install Anaconda, type the following command into a command prompt:
> Anaconda-2.x.x-Windows-x86[_64].exe /S /D=C:\Anaconda
Good luck.