<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Dear Sir:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I wish to install PyQt4 on a Raspberry Pi unit using the lattest<o:p></o:p></p><p class=MsoNormal>Raspbian and Python 2.7 or Python 3. I have not been able to<o:p></o:p></p><p class=MsoNormal>successfully install an SIP package or PtQt4. Attached is an example<o:p></o:p></p><p class=MsoNormal>of what I have tried:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>pi@raspberrypi:~ $ python 01-Window.py<o:p></o:p></p><p class=MsoNormal>Traceback (most recent call last):<o:p></o:p></p><p class=MsoNormal> File "01-Window.py", line 9, in <module><o:p></o:p></p><p class=MsoNormal> from PyQt4.QtGui import *<o:p></o:p></p><p class=MsoNormal>ImportError: <span style='background:yellow;mso-highlight:yellow'>No module named PyQt4.QtGui</span><o:p></o:p></p><p class=MsoNormal>pi@raspberrypi:~ $ <o:p></o:p></p><p class=MsoNormal>pi@raspberrypi:~ $ <span style='background:yellow;mso-highlight:yellow'>pip3 install SIP</span><o:p></o:p></p><p class=MsoNormal>Downloading/unpacking SIP<o:p></o:p></p><p class=MsoNormal> Could not find any downloads that satisfy the requirement SIP<o:p></o:p></p><p class=MsoNormal>Cleaning up...<o:p></o:p></p><p class=MsoNormal>No distributions at all found for SIP<o:p></o:p></p><p class=MsoNormal>Storing debug log for failure in /home/pi/.pip/pip.log<o:p></o:p></p><p class=MsoNormal>pi@raspberrypi:~ $ <span style='background:yellow;mso-highlight:yellow'>pip install SIP</span><o:p></o:p></p><p class=MsoNormal>Downloading/unpacking SIP<o:p></o:p></p><p class=MsoNormal> Could not find any downloads that satisfy the requirement SIP<o:p></o:p></p><p class=MsoNormal>Cleaning up...<o:p></o:p></p><p class=MsoNormal>No distributions at all found for SIP<o:p></o:p></p><p class=MsoNormal>Storing debug log for failure in /home/pi/.pip/pip.log<o:p></o:p></p><p class=MsoNormal>pi@raspberrypi:~ $ <span style='background:yellow;mso-highlight:yellow'>apt-get install PyQt4</span><o:p></o:p></p><p class=MsoNormal>E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission<o:p></o:p></p><p class=MsoNormal>denied) E: Unable to lock the administration directory<o:p></o:p></p><p class=MsoNormal>(/var/lib/dpkg/), are you root? pi@raspberrypi:~ $ sudo apt-get install<o:p></o:p></p><p class=MsoNormal>PyQt4 Reading package lists... Done<o:p></o:p></p><p class=MsoNormal>Building dependency tree <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Is it possible to accomplish this and can you point me to a step<o:p></o:p></p><p class=MsoNormal>by step direction?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks,<o:p></o:p></p><p class=MsoNormal>Dennis Hofer<o:p></o:p></p></div></body></html>