Skip to content

Instantly share code, notes, and snippets.

@T1T4N
Forked from guillaumevincent/installation.md
Created April 18, 2016 19:12
Show Gist options
  • Select an option

  • Save T1T4N/b23fdbe07bb581ebe678df6bf6711544 to your computer and use it in GitHub Desktop.

Select an option

Save T1T4N/b23fdbe07bb581ebe678df6bf6711544 to your computer and use it in GitHub Desktop.

Revisions

  1. guillaume vincent revised this gist Apr 17, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion installation.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # Guide to install PyQt5 on mac with python 3.4
    # Guide to install PyQt5 on Mac OS X with python 3.4 virtualenv

    ## Description
    A simple guide to install PyQt5 on Mac OS X 10.9 (Maverick) and use python 3.4 on a virtualenv.
  2. guillaume vincent revised this gist Apr 17, 2014. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions installation.md
    Original file line number Diff line number Diff line change
    @@ -28,7 +28,7 @@ A simple guide to install PyQt5 on Mac OS X 10.9 (Maverick) and use python 3.4 o
    * create a virtual env (i.e. ~/.env/ariane_mail)
    * unzip and compile SIP and PyQt


    ```
    cd /var/tmp
    cp /Users/gvincent/Downloads/PyQt-gpl-5.2.1.tar.gz .
    cp /Users/gvincent/Downloads/sip-4.15.5.tar.gz .
    @@ -45,5 +45,5 @@ A simple guide to install PyQt5 on Mac OS X 10.9 (Maverick) and use python 3.4 o
    sudo make install
    sudo make clean
    ~/.env/ariane_mail/bin/python -c "import PyQt5"

    ```

  3. guillaume vincent created this gist Apr 17, 2014.
    49 changes: 49 additions & 0 deletions installation.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,49 @@
    # Guide to install PyQt5 on mac with python 3.4

    ## Description
    A simple guide to install PyQt5 on Mac OS X 10.9 (Maverick) and use python 3.4 on a virtualenv.

    ## Requirements

    * xcode 5.1.1
    * python 3.4.0
    * Qt libraries 5.2.1
    * SIP 4.15.5
    * PyQt 5.2.1

    ## Download

    * [xcode 5.1.1](https://developer.apple.com/xcode/downloads/)
    * [python 3.4.0](https://www.python.org/download/)
    * [Qt libraries 5.2.1](http://qt-project.org/downloads)
    * [SIP 4.15.5](http://www.riverbankcomputing.co.uk/software/sip/download)
    * [PyQt 5.2.1](http://www.riverbankcomputing.co.uk/software/pyqt/download5)

    ## 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 /var/tmp
    cp /Users/gvincent/Downloads/PyQt-gpl-5.2.1.tar.gz .
    cp /Users/gvincent/Downloads/sip-4.15.5.tar.gz .
    tar xvf PyQt-gpl-5.2.1.tar.gz
    tar xvf sip-4.15.5.tar.gz
    cd sip-4.15.5/
    python3 configure.py -d ~/.env/ariane_mail/lib/python3.4/site-packages --arch x86_64
    make
    sudo make install
    sudo make clean
    cd ../PyQt-gpl-5.2.1/
    python3 configure.py --destdir ~/.env/ariane_mail/lib/python3.4/site-packages --qmake ~/Qt5.2.1/5.2.1/clang_64/bin/qmake
    make
    sudo make install
    sudo make clean
    ~/.env/ariane_mail/bin/python -c "import PyQt5"