Skip to content

Instantly share code, notes, and snippets.

@ZoomQuiet
Forked from bitjockey42/install.md
Created April 1, 2019 03:50
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save ZoomQuiet/1240c6202438c08e1f1d7134ca0189b2 to your computer and use it in GitHub Desktop.
Save ZoomQuiet/1240c6202438c08e1f1d7134ca0189b2 to your computer and use it in GitHub Desktop.
Install SIP and PyQT4 (pyenv, pyenv-virtualenv)

Download

pyenv virtualenv

Switch to the Python version you want to use:

pyenv shell 2.7.9

Create the virtualenv:

pyenv virtualenv <name-of-virtualenv>

Activate the virtualenv:

pyenv activate <name-of-virtualenv>

Find out what the path to the virtualenv is:

ls ~/.pyenv/versions

It will most likely look something like: ~/.pyenv/versions/<name-of-virtualenv>

Install SIP

Change to the directory where the SIP source was extracted:

cd /path/to/src/SIP

Configure, and make sure to include python2.7 for the virtualenv:

python configure.py --incdir=~/.pyenv/versions/<name-of-virtualenv>/include/python2.7

Then compile and install:

make
make install

Install PyQt4

cd /path/to/src/PyQt4
python configure.py
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment