Menu
The Issue: I am having trouble installing wxPython on Ubuntu 12.04. I would like to find a simple, straightforward way of doing this.What I've Done So Far: The most relevant instructions that I have been able to find so far can be found here:The issue with these instructions is that there is no choice available for Precise 12.04.
12.04 has been unsupported for about a year now. The best way you can install pip3 is by upgrading to a newer, supported version of Ubuntu. You have 3 LTS versions to pick from. In this article I will show you how to install Python 3.3, the latest Python version available on Ubuntu 13.04 Raring Ringtail, Ubuntu 12.10 Quantal Quetzal and Ubuntu 12.04 Precise Pangolin. Because there is no PPA for Ubuntu 13.04, we’ll do an installation from sources.
The most up-to-date distro shown is Natty 11.4. From what I can find, the proper way to do this is to manually build debian packages, which is explained here:Upon attempting this and finally typing the command 'fakeroot debian/rules binary', I get the errors:debian/rules:14: /usr/share/quilt/quilt.make: No such file or directorypyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversionspyversions: missing debian/pyversions file, fall back to supported versionsmake:. No rule to make target `/usr/share/quilt/quilt.make'.
Stop.I cannot seem to fix this error, or find any other applicable resources that work for me. I would post more links here, but since I am new, the spam filter is blocking me from doing so.Conclusion: Does someone know a simple solution to properly installing wxPython on Ubuntu 12.04 Precise?Update: I tried just simply using the apt-get command 'sudo apt-get install python-wxgtk2.8', and I received this (which seems good):Reading package lists. DoneBuilding dependency treeReading state information. Donepython-wxgtk2.8 is already the newest version.The following packages were automatically installed and are no longer required:language-pack-zh-hans yaml-cpp language-pack-kde-en language-pack-kde-zh-hans language-pack-kde-en-base language-pack-zh-hans-base language-pack-kde-zh-hans-baseUse 'apt-get autoremove' to remove them.0 upgraded, 0 newly installed, 0 to remove and 173 not upgraded.But once I attempt to run something, ie 'python testgui.py', I get the following error:Traceback (most recent call last):File 'testgui.py', line 1, inimport wxImportError: No module named wx. You can also install it with Pip, but with a slight modification to the install command.From the wxPython:Because of the differences between Linux distributions (mainlydifferent versions of the core libraries installed by default, butalso platform architecture and etc.) it is not possible to host binarywheel files for Linux on PyPI unless they can be made to work withinthe constraints of PEP 513 Unfortunately, attempts to pound thewxPython peg into the manylinux1 hole have not been very successful.Maybe manylinux2 will be a better fit. In the meantime, if you have aLinux similar enough to those used to build the wheels located underthe wxPython Extras linux folder, then you can use them and not needto build the wheels yourself.Since there are various options for distro and wx port (GTK2 or GTK3)then the files can not all be located in the same folder for easyaccess by pip. This simply just means that you'll need to drill down alittle further to find the URL to give to pip.
For example, to get theGTK3 wxPython builds for Ubuntu 16.04 (and 16.10, LinuxMint 18, andprobably others) you can use a pip command like this: pip install -U -f wxPython. I have succeed to install wxpython follow this way (also ubuntu 12.04):. The packages and the repository meta-data are digitally signed, so you'll need to import the key into your apt's list of trusted keys in order to not get warnings about it.
Add the lines to your /etc/apt/sources.list file. Run the this command to update your local copy of the package meta-data.sudo apt-get update.
You can now use your favorite package selection tool to install or upgrade the wxWidgets and wxPython packages. Here's how to do it with apt-get:sudo apt-get install python-wxgtk2.8 python-wxtools wx2.8-i18nreference link.
![Install Python Ubuntu 12.04 Install Python Ubuntu 12.04](http://earthdef.caltech.edu/attachments/download/415/screenshot.png)
I am trying to install python-software-properties package on an ubuntu 12.04 machine. I keep getting: The following packages have unmet dependencies:python-software-properties: Depends: python (. I see a whole lot of lines with lucid.
Actually, the whole sources.list file looks like it belongs to lucid. /etc/issue says: Ubuntu 12.04.1 LTS. I know only a little about the history of the machine. I was told that it was running 12.04.
![Install Install](/uploads/1/2/5/5/125522939/478356166.png)
I was asked to install Java7 on the machine, that's when I tried to add a PPA for which I needed python-software-properties. Is there any hope that I could clean up the mess? Thanks again for your quick response. PS: BTW I see a back up of sources.list that definitely belongs to precise pangolin.–Dec 14 '12 at 21:39. These two lines from the comments summarize your issue perfectly:I see a whole lot of lines with lucid. Actually, the whole sources.list file looks like it belongs to lucid.I was told that it was running 12.04.It is in some way, but not all. If it's not too much work, I suggest to start all over in a new installation.Alternatively,.
and put them in /etc/apt/sources.list. make sure only precise sources are listed/configured (including in the files in the /etc/apt/sources.list.d directory. Run sudo apt-get clean and sudo apt-get update. update/upgrade all packages (e.g. Sudo apt-get dist-upgrade)However, this does not ensure all packages are in a clean state, so you might end up into trouble again.