diff --git a/ci/travis/before_install.sh b/ci/travis/before_install.sh
index 20727a6a57c3a8c04a0d19eb1be10343e44ea3d4..bacf60288d4755f5d9a922326489b484e8d20966 100755
--- a/ci/travis/before_install.sh
+++ b/ci/travis/before_install.sh
@@ -19,7 +19,6 @@ then
     brew list qt5
     brew install pyenv-virtualenv
     pyenv update
-    pip install PyQt5
 elif [ $TRAVIS_OS_NAME == "linux" ]
 then
     sudo apt-get update
diff --git a/ci/travis/build.sh b/ci/travis/build.sh
index 784ab4bd7b85de6563b704fdd4fc1b26b7e64dc6..13cebd6ef0e7001c56c7ccd7dba196cb75ba2bd2 100755
--- a/ci/travis/build.sh
+++ b/ci/travis/build.sh
@@ -21,6 +21,7 @@ then
 fi
 if [ $TRAVIS_OS_NAME == "osx" ]
 then
+    brew link qt5
     export PATH=/Users/travis/.pyenv/versions/$PYENV_PYTHON_VERSION/Python.framework/Versions/3.5/bin:$PATH
 fi