Installing Qt5 and PyQt5 for Python 2.7 - python

I am new to Stack Overflow and Python.
I am developing for Visual Effects, which means that I am (and will continue) using Python 2.7. I'm a bit lost and looking for clear instructions on how to install pyqt5. I know this seems pretty elementary, so I appreciate everyone's patience.
There is a lot of information on this subject like, you need QT5 or Scintilla? A lot of the instructions are fragmented and don't have all of the information. I was wondering if someone could point me in the right direction with clear and concise instructions.
For example:
Install Python 2.7
Install x
...
...
...
I'm willing to figure it out myself, but I feel the information I have has a lot of holes and could use some help/direction.
Thanks in advance.

Maybe this link can help. It is for installing PyQt5 on Python 3, but I think it will be the same process for Python 2.
Update:
Since you didn't say any specific OS, I will assume you're using Windows. For Windows, there is already Python distribution which is ready to use such as WinPython. This is what I've done on my machine:
Download appropriate WinPython version for your machine,
Download appropriate PyQt5 wheels version for your machine,
Install WinPython,
Extract the downloaded PyQt5 wheels,
Copy pyqt5-tools folder found inside where you extracted PyQt5 wheels
Paste it to Where_You_Installed_WinPython\Lib\site-packages.
You can start designing your GUI with double-clicking Qt Designer.exe. After you finished designing your GUI, you can convert the GUI file (with *.ui extension) to *.py with pyuic5 -x yourgui.ui -o yourgui.py command.
python and pyuic5 command on your command prompt can only be executed in your WinPython installation folder. inside your WinPython installation folder.

Related

Need help cleaning up PyQt and python

I was trying to install PyQt 5.9 but I have no idea what I'm doing. According to what I've seen I have to download Qt from:
https://qt-project.org
and then SIP (whatever that is...) and PyQt from:
http://www.riverbankcomputing.com
I did all that and Qt weights like 30 Gb...
Now I have to install pyqt but the README.md file says this:
'''INSTALLATION
Check for any other README files in this directory that relate to your
particular platform. Feel free to contribute a README for your platform or to
provide updates to any existing documentation.
The first step is to configure PyQt5 by running the following command.
python configure.py
'''
And I have no idea what to do now, I keep getting the 'no such file/directory found' error.
I went to the directory where I have python installed and I still get the same.
-
I have a Mac and python 3.6
Turns out I have Qt 5.8 already installed, and since I just downloaded 5.9 I'd like to upgrade it but I don't know how. And maybe it's taking up another 30Gb somewhere else.
Also, when I type 'which python' I get 'anaconda/bin/python' and not python 2.7, how do I fix that? also I went to the dir where I have python and have python 2.4, 2.5 and 2.7. Should I just delete the others? and what is SIP??
Check these steps
Go to the QT website and download it.
Install python on your pc,
If it's Linux: sudo apt-get install python3.6
Or see this link.
Install also some IDLE to work on, I'd recommend you to use PyCharm
You can install now your PyQt through your Pycharm, see in here, find for pyqt5.
There is always the option to install through pip3, try to use pip3 instead of pip, since you are using python3.
After having pip3, try now to install your pyqt5. Check it out.
Now you have an IDLE to work on with PyQt and Qt in your machine, maybe you have to say in your PyCharm that you will use python3.6 as your interpreter.

Installing PyGame on windows7 (I5, 64 bit) anyone have a link for a easy installer?

Good Morning,
I am not understanding the tutorials that are online for installing PyGame. does anyone know of website that has an .exe file that I just click on and it will do all the installation for me? Any help is appreciated, I have spent all morning just trying to get the pygame into python :( * Note I would be willing to uninstall python and start from scratch if that is a good idea.
Thank you
You can get the latest version of PyGame from their downloads page:
http://www.pygame.org/download.shtml
This lists downloads for all platforms, including Windows installer (.msi) packages. Just download the version you need and double-click to run it (note that they currently recommend using a 32-bit Python installation for compatibility if you are on 64-bit Windows).
Alternatively, you can install the Wheel package for PyGame using the pip package manager, which will also make updating PyGame easier in the future. Installation using this method is also described on the above page, and a link to the package on PyPI is located here: https://pypi.python.org/pypi/Pygame/1.9.3

PySide2 on windows

Does anyone know where I can find a pip-install for PySide2?
It's 2017 and I can't seem to find a pip install or site-package containing the binaries for PySide2. I prefer not to deal with downloading the source code and compiling it myself, as that usually ends up being a huge headache as it's never a smooth process. Also considering it's highly likely someone else has already done it. If I were to be honest here, if I attempted to compile it myself and errors popped up, I wouldn't really know where to begin solving them, nor do I want to spend time doing that.
I just find it hard to believe I can't find it anywhere online or even in PIP when a lot of applications in the VFX industry are switching to PySide2.
I hope someone can help me out.
Thanks
Same Problem...
So i tried to build it. But there are Problems building the WebKit.
Hence my windows binaries are actually without a webkit binding.
You can obtain it through PyPI:
pip install PySide2
or if it fails (most likely because your pip executable is bound to python 2) try:
pip3 install PySide2
or even better:
python -m pip install Pyside2
This assumes that python is bound to Python 3, that way you're really sure about the Python version used, see Why you should use python -m pip.
There are wheels available by Fredrik Averpil here built with Qt 5.6.
Claudius Hansch's answer provides a wheel using Qt 5.9.
In any case, don't forget to either
set the QT_QPA_PLATFORM_PLUGIN_PATH environment variable as described here
or
create a qt.conf file in the folder of your python.exe with the content
[Paths]
Prefix = /dir_to_site-packages/PySide2
Binaries = /dir_to_site-packages/PySide2
PySide2 is now available on pypi so a simple
pip install PySide2
should work on Windows, OSX, and linux!
I use Python 3.7 on windows 10 pro, 64bit.
Installing via pip failed for me.
I ended up downloading the wheel from qt directly
QT official download page
and install the downloaded wheel which worked fine.

wxpython 3 on windows

How can I download wxPython 3 on windows?
I see this link but it has .egg extension, and not exe. Ive given up on pyQT because of the lack of advanced tutorials for PyQT4, and I really would like a good libaray i can build GUI's from in Python. Ive read that wxpython 3 is compatible with the wxpython 2 api.
I cant find any good online tutorials for installation. Im using Python 3.3.2, Any suggestions? Thanks!
wxPython does not yet officially support Python 3. However, if you unpack the .tar.gz in a directory and run c:\Python33\python.exe setup.py install or equivalent on your system, it should install just fine.
However, beware that some parts of the library may not work on Python 3 yet.
Note: Tested with wxPython_Phoenix-3.0.1.dev75711.tar.gz.
To install wxPython for py3k (Phoenix) on windows.
First install setuptools.
This creates easy_install.exe in your Python Scripts folder.
Then download Phoenix.
For example: wxPython_Phoenix-3.0.1.dev75783-py3.3-win32.egg
Put the downloaded egg file somewhere.
For example in C:\Python33\
Open the console, go to C:\Python33\Scripts
run:
C:\Python33\Scripts>easy_install.exe C:\Python33\wxPython_Phoenix-3.0.1.dev75783-py3.3-win32.egg
Phoenix will install

Python installing PyQt4 module to custom software

This is something I've been researching for past few hours but so far nothing come out of it.
Basically I have software that use Python 2.5.5. It does not have QT module in it.
So in my attempt to install it I did this.
Downloaded executable QT PyQt4-4.10.2-gpl-Py2.7-Qt4.8.4-x64. Run Exe. It installed in python 2.7 site-packages.
Then I moved that folder to my software Python 2.5.5. Now there was no site-packages folder so I created it.
Next step was to go over this instruction http://docs.python.org/2/install/ and use Alternate installation: Windows (the prefix scheme) with my file location from inside program. But I cant run python setup.py install --prefix="\Temp\Python" (with my location of python) because python is not defined and so on. I'm pretty sure thats the wrong way to do it. So how or where do I look for information as to how to do it? The software itself dont have any documentation.
Thanks, bye.
That binary version of PyQt4 only supports python2.7, so no matter what you do, you won't get it to run with python2.5.
The last PyQt4 version with a binary for python2.5 is PyQt4.9.4, so if you want to have any chance of making this work you should try with this version.
Note however that the software you distribute like this will also only run on python2.5.

Categories