Skip to content

Instantly share code, notes, and snippets.

@leechannl
Forked from guillaumevincent/installation.md
Last active June 29, 2017 02:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leechannl/867c824635511079400d21ea997a2be5 to your computer and use it in GitHub Desktop.
Save leechannl/867c824635511079400d21ea997a2be5 to your computer and use it in GitHub Desktop.
install PyQt5 on Mac OS X 10.9 and use python 3.4 on a virtualenv.

Guide to install PyQt5 on Mac OS X with python 3.5 virtualenv

Description

A simple guide to install PyQt5 on Mac OS X 10.11 and use python 3.5 on a virtualenv.

Requirements

  • xcode latest
  • python 3.5.1
  • Qt libraries 5.6.0
  • SIP 4.17
  • PyQt 5.5.1

installation

  • install xcode
  • install the Command Line Tools (open Xcode > Preferences > Downloads)
  • install Qt libraries (qt-opensource-mac-x64-clang-5.2.1.dmg)
  • install python 3.4
  • create a virtual env (i.e. ~/.env/ariane_mail)
  • unzip and compile SIP and PyQt
    cd sip/
    python configure.py -d ~/.pyenv/versions/3.5.1/lib/python3.5/site-packages/ --arch x86_64
    make
    sudo make install
    sudo make clean
    cd ../PyQt/
    python configure.py --destdir ~/.pyenv/versions/3.5.1/lib/python3.5/site-packages --qmake ~/Qt5.6.0/5.6/clang_64/bin/qmake
    make
    sudo make install
    sudo make clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment