wxpython 3 on windows - python

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

Related

Installing Qt5 and PyQt5 for Python 2.7

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.

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.

wxPython in Python 3.4.1

I'm relatively new to Python programming, so apologies in advance if this question seems stupid. I'm trying to download a new Python editor (drpython) that is written with wxpython. I have Python 3.4.1 64-bit on a Windows 8.1 machine.
I was under the impression that wxpython was bundled into the standard library in Python 3, yet whenever I try to use applications that utilize it I get a 'can't import' error. On the wxpython website, it seems they only have downloads for Python 2.
Is wxpython not supported on Python 3.4? Has anyone else had trouble using wxpython with Python 3.4?
wxPython is not part of Python. You may be thinking of Tkinter, a UI toolkit that is included with Python. Currently, wxPython is only supported on Python 3 via the Phoenix project. At the time of this writing, Project Phoenix has the core wxPython widgets ported, but much of the 3rd party widgets are not.
As already mentioned, you can read about Phoenix here:
http://wiki.wxpython.org/ProjectPhoenix
You need the latest version of pip to install a wheel. Make sure you have the latest. Once you do, you can do something like this to install wxPython Phoenix:
pip install -U --pre -f http://wxpython.org/Phoenix/snapshot-builds/ wxPython_Phoenix
See also:
https://groups.google.com/forum/#!searchin/wxpython-dev/pip$20install/wxpython-dev/LmGIrQyh7jc/_qe3FiVJv1MJ
Before python3 - wxPython.
From python3 onwards - wxPython_Phoenix. (new version of wxPython)
When wxPython is used on Python3 it gives import errors. Command given by
Mike Driscoll in answer above works but small update is with https.
pip install -U --pre -f https://wxpython.org/Phoenix/snapshot-builds/ wxPython_Phoenix

Error while installing PyQt

I want to install PyQt to use features of the Qt-library for my Python programms. When I execute 'configure.py' in the command window I get the following error:
Error: Make sure you have a working Qt qmake on your PATH.
About my system and what I've done yet: I use Python 3.2 on Windows 7.
First I compiled sip-4.15.5. After getting the error above, I also installed Qt5.2.1. Both installations worked without a problem, but the error stayed the same.
I have tried a solution for apparently the same problem, found on stackoverflow. But it doesn't work for me (exportisn't a windows command, is it?). And I don't use the PyQt installer, because it's only available for Python 2.7 and 3.3.
Thanks.
You can download a PyQt installer for Python 3.2 here at Christoph Gohlke's Python Extension Packages for Windows repository. Whenever I'm looking to install or update a module on Windows, I look there first.

Use all-in-one pygtk installer Windows 7 doesn't work?

I have python 2.6 installed on my Windows 7 OS. I can run the python command from the command line and I enter into a python interpreter. Now I want to install the pygtk modules. In the past I have installed GTK+, PyGTK, PyCairo and PyGObject separately and got everything to work. I would like to use the all-in-one installer provided on the pygtk website. I downloaded the version from python 2.6 and the installation completed successfully.
However import gtk and import pygtk still give me the ImportError: No module named .... Does anyone know a trick to get this "all-in-one" installer to work?
Please see my answer to the post here. Bottom line is I couldn't get the all-in-one installer to work for windows 7, but I DID get pygtk running by following the instructions given in that post.
I am a dummy for installing the NOT all-in-one-package, (Perhaps confusingly) the one listed top on the pygtk download page (pygtk-2.24.0.win32-py2.7.exe) to which the link on the description points is the wrong installer (i.e. NOT the all in one installer).
When I corrected my mistake and used the pygtk-all-in-one-2.24.2.win32-py2.7.msi installer, everything worked just fine! Perhaps this is what happened to jeffery_the_wind too...
The all in one installer works. Try the following link:
pygtk-all-in-one-2.24.2.win32-py2.6.msi
On the PyGTK downloads page, clicking on the all-in-one installer link directs you to listing of PyGTK installation binaries. Perhaps you downloaded and installed the 'pygtk-2.24.0.win32-py2.6.msi' binary which is at the top of the listing (and probably shouldn't be here) but doesn't work.
I don't know if this can help, but it may be the solution as it once was for me years ago under XP :
The all-in-one installer installs PYgtk, PYcairo, ... and allsort PYstuff, but DOES NOT install GTK+ itself.
I had to download the GTK library separately, unzip it in some folder (say "C:\GTK"), and ADD that folder in the system path, and there it was fixed !
(there is an all-in-one bundle for GTK : http://www.gtk.org/download/win32.php)
Hope this was helpful.

Categories