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.
Related
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.
I've tried so many times to find this pathing but to no avail(link: How do I import modules in pycharm?)
I think it's because I'm using a newer version of PyCharm, but here is my project Interpreter:
I don't see the + path anywhere in here, and I have downloaded a version of wxPython on my computer that I want to wire the path to. In the url link's first answer, he says to add a path, but I don't even see the path tab in my default settings.
I tried downloading wxPython using the project interpreter, but this is what I get:
And I searched for a while to find out that perhaps PyPi does not support wxPython(maybe I'm wrong on this, but: https://github.com/kliment/Printrun/issues/535 ,here it says to download the wxPython binary instead because the project interpreter does not support wxPython). I was able to successfully download numpy and matplotlib, so I was quite confused when I couldn't download wxpython.
So now I'm stuck, because I can't add a path to my wxPython(inside of wxMac folder), and I can't download wxPython directly. The only other way I can think of is manually copying and pasting the wxmac folder into my virtualenv folder's bin, but I'm afraid of not copy pasting the right thing into the right directory.
What is going on? Any help would be greatly appreciated!
You should just download the appropriate wxPython binary for your OS and install it that way instead of using PyCharm. I have had no problems installing wxPython on Windows, Linux or Mac doing it this way.
wxPython is currently not on PyPI. The beta version of wxPython, known as wxPython Phoenix, supports pip. The regular version of wxPython (classic) uses just binaries or you can build from source. Note that wxPython Phoenix doesn't have all the widgets that Classic does. It just has the core widgets plus a number of others. You can read more about Phoenix here:
http://wiki.wxpython.org/ProjectPhoenix
http://wxpython.org/Phoenix/docs/html/MigrationGuide.html
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.
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
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.