Skip to content

Instantly share code, notes, and snippets.

@jayme-github
Last active September 8, 2015 08:20
Show Gist options
  • Save jayme-github/3f1ac868b8e447567dfe to your computer and use it in GitHub Desktop.
Save jayme-github/3f1ac868b8e447567dfe to your computer and use it in GitHub Desktop.
Installl PyQT in virtualenv
NEWENV="goodname"
PY="$(which python3)"
mkvirtualenv -p "$PY" --always-copy "$NEWENV"
mkdir ~/.virtualenvs/$NEWENV/build
cd ~/.virtualenvs/$NEWENV/build
# SIP
wget http://sourceforge.net/projects/pyqt/files/sip/sip-4.16.9/sip-4.16.9.tar.gz
tar xfz sip-4.16.9.tar.gz
cd sip-4.16.9
python configure.py --incdir=~/.virtualenvs/$NEWENV/include/python3.4m
make
make install
cd ..
# PyQt4
wget http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.11.4/PyQt-x11-gpl-4.11.4.tar.gz
tar zxf PyQt-x11-gpl-4.11.4.tar.gz
cd PyQt-x11-gpl-4.11.4
python configure.py
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment