Installing PyQt5 Designer on windows - windows

I installed PyQt5 using Windows command window and pip3 install PyQt5 as described in the download page, it was installed successfully. but I didn't found PyQt Designer in the Windows Start Menu so I thought I need to install it separately. After searching various forums, I tried adding it using pip3 install pyqt5-tools it shows Successfully installed pyqt5-tools-5.9.0.1.2 but PyQt Designer wasn't installed.
Is there any way to install PyQt Designer?
My Python version:
>>> python --version
Python 3.5.2 :: Anaconda custom (64-bit)

On windows 10, with Python3.5, and pyqt5, I installed pyqt5-tools using pip:
pip install pyqt5-tools
and the designer was automatically install in the following folder:
"Python directory"\Python35\Lib\site-packages\pyqt5-tools

try this:
pip install pyqt5
pip install pyqt5-tools
Now you'd find the designer in site-packages/pyqt5-tools.
Lib\site-packages\qt5_applications\Qt\bin

I think I found a workaround, first I uninstalled PyQt5 and pyqt5-tools-5.9.0.1.2
pip3 uninstall PyQt5
pip3 uninstall pyqt5-tools-5.9.0.1.2
I went to this page, downloaded the PyQt5-5.6-gpl-Py3.5-Qt5.6.0-x64-2.exe file and installed it normally.

In most cases, due to updates of the packages or some other reasons, "designer tool" will not be in the default location.
If so, you can find it here:
C:\Program Files (x86)\Python37-32\Lib\site-packages\pyqt5_tools\Qt\bin

try
pip install PyQt5Designer It will then be under lib/QtDesigner/designer.exe

this is might be not much helpful but i just wanted to share, I install pyqt5 using pip with the tools as well and couldn't find PyQt Designer in the Windows Start as well coz I searched "pyqt designer". I could find it when i searched "designer" only.

pip install pyqt5-tools
....\venv\Lib\site-packages\qt5_applications\Qt\bin

Related

Where to find the windows installer for anaconda version 4.6.11

I am trying to find an install an old version of anaconda. I have been trying to find the windows 64 installer for the anaconda 4.6.11 version but didnt succeed.
Could anybody tell me where to find it?
Via link must be all previous versions installers available:
https://repo.anaconda.com/archive/
conda 4.6.11 = Anaconda 2019.03
Check for yourself: https://www.anaconda.com/blog/anaconda-2019-03-release
So you could use command conda install anaconda=2019.03

You might be loading two sets of Qt binaries into the same process

I am trying to run python code in virtual environment of conda. The thing is I have installed opencv using brew and using python from anaconda environment. There is library called qt which is in both (brew and conda). Now when I try to run my code it says you are loading two sets of qt binaries in the same process. I understood the error but I don't know how to disable qt binary either from conda or from brew.
After deleting the one from conda it works fine but some dependencies also gets deleted. Don't want that. Can somebody suggest me some way.
If OpenCV's gui functionality is not required, then this is an option to avoid qt conflict.
pip uninstall opencv-python
pip install opencv-python-headless

git-cola will not run on windows

I have installed git-cola using the setup installer for windows. I pointed it to proper installs of git and python.
When I try to launch git-cola, nothing happens whatsoever.
Is there something I am missing here?
I had the same problem, in my case it was missing PyQt4 library. You can install PyQt4 by downloading an appropriate installer from Binary Packages section on PyQt4 Riverbank website.
How I investigated the issue
When I installed git-cola in a default directory and tried to run it using a command line
C:\Program Files (x86)\git-cola\bin>python git-cola.pyw
I got
Sorry, you do not seem to have PyQt4 installed.
Please install it before using git-cola.
e.g.: sudo apt-get install python-qt4
Note
I have two Python 2.7 installations, one at c:\program\Python27 and another at C:\Users\UserName\Anaconda2, I used the first one. I also installed Python SIP some time ago, I'm not sure if it required by git-cola.

Uninstalling PyQt5 to install PyQt4

I use Windows 7 and Python 3.4 (32bit). I installed PyQt5 and proceeded watching tutorials on how to use the module. However, the tutorial used PyQt4 instead and I faced problems. So, I decided to switch from PyQt5 to the older, PyQt4. I installed PyQt5 using the Windows Installers.
When I proceeded to install PyQt4, it gives me this error message: A copy of PyQt5 for Python v3.4 is installed in C:\Python34 and must be uninstalled first.
After checking the documentation, it said that we couldn't have both PyQt4 and PyQt5 installed at the same time, unless we built from source. I'm not sure how to build from source on Windows but after trying(extracting sip, running configure.py; extracting PyQt4, running configure-ng.py/configure.py) I still get a bunch of errors namely:
something Qmake related
Import Error: No module named sipconfig.
I gave up trying to build from source and instead just wanted to uninstall PyQt5 so I could use PyQt4. I deleted the sip folder and PyQt4 from the botched installation first. Then, I deleted PyQt5 itself from site-packages as well as qt.conf in C:\Python34.
Running the binaries for PyQt4 still gives me the PyQt5 is installed error message. How do I uninstall PyQt5 completely so that I can install PyQt4? Thanks.
I installed PyQt5 again using the installer and the used the uninstall.exe provided in the PyQt5 folder in site-packages. I hope this solution is helpful for others such as those here.
Uninstall using uninstall.exe which is provided in your PyQt4/5 folder in site-packages. If you already deleted the folder, just reinstall it with the .exe you first used and try again.
Try:
pip3 uninstall pyqt5
It worked seamlessly for me.

Install wxpython on mac

I am new to Mac, have always used windows and I am confused on how to install wxPython. I downloaded the .dmg file from the website, and it contained three files:
a pkg file, a readme, and an uninstall.py
I opened the pkg file, went through the steps, and Im not sure where it installed after it said "Installation Complete"
Also, I did the import wx in idle, which caused a stacktrace error.
Thanks.
From personal experience on installing wxPython on both Windows 7 and Mac OSX, I found restarting the computer helps out after installation and stacktrace errors appearing in the Shell upon 'import wx'. Sounds simple enough, but it worked for me. If no errors appear after 'import wx', that means wxPython installed correctly. To add to bouke's answer above, the current way to install Python 2.7 via homebrew in Terminal:
brew install python
To install wxPython:
brew install wxpython
At least for development, I would suggest to install (python and) wx using homebrew. It will install version 2.9 and you're ensured that Apple-provided system libraries remain untouched.

Resources