How to install SIP+PyQt with apt-get + pip + virtualenv?

Posted by kjo on Ask Ubuntu See other posts from Ask Ubuntu or by kjo
Published on 2013-06-24T16:19:46Z Indexed on 2013/06/24 16:37 UTC
Read the original article Hit count: 346

Filed under:
|
|
|

[I originally posted this question, under a different title, in StackOverflow (here), but later I realized that my problem is very specific to apt-get, hence I am re-posting it here. Sorry for the duplication.]

I'm trying to install PyQt on Ubuntu (and within a virtualenv). The list of obstacles I'm dealing with is far too long to include here, but the one I'm currently trying to get past is this:

% workon myvenv
(myvenv)% cd ~/.virtualenvs/myvenv/build/pyqt
(myvenv)% python ./configure.py
Traceback (most recent call last):
  File "./configure.py", line 32, in <module>
    import sipconfig

OK, so let's install sipconfig...

(myvenv)% pip install SIP
Downloading/unpacking SIP
  Downloading sip-4.14.8-snapshot-02bdf6cc32c1.zip (848Kb): 848Kb downloaded
  Running setup.py egg_info for package SIP
    Traceback (most recent call last):
      File "<string>", line 14, in <module>
    IOError: [Errno 2] No such file or directory: '/home/yt/.virtualenvs/myvenv/build/SIP/setup.py'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 14, in <module>

IOError: [Errno 2] No such file or directory: '/home/yt/.virtualenvs/myvenv/build/SIP/setup.py'

----------------------------------------
Command python setup.py egg_info failed with error code 1 in /home/yt/.virtualenvs/myvenv/build/SIP
Storing complete log in /home/yt/.pip/pip.log

The only recipe I've found so far installing SIP is this

% python configure.py
% make
% sudo make install

...but this recipe goes against my policy of doing all my Ubuntu installations either through apt-get (or through pip in the case of Python modules).

Is there some way that I can install SIP with apt-get (and possibly pip)?

© Ask Ubuntu or respective owner

Related posts about apt

Related posts about python