- Make sure you are using the latest version of Homebrew:
38
38
39
39
brew update
40
41
- Patch the python3 formula so you'll get python 3.5 and not a later version (pyinstaller still requires python 3.5):
42
43
brew uninstall python3
44
brew edit python3
45
# replace the file with the contents of https://raw.githubusercontent.com/Homebrew/homebrew-core/1e62c645b2fc2d82042d9f7c364c6a246f2e11ed/Formula/python3.rb and save it
46
brew install python3
47
brew pin python3
40
48
41
49
- Install the dependencies for Mnemosyne. You may need to install qt5 or python3 manually to get the correct version.
42
50
43
brew install python3 qt5 mplayer
51
brew install qt@5.7 mplayer
44
52
pip3 install virtualenv
45
53
virtualenv --python=python3 venv
46
54
source venv/bin/activate
49
57
- Build it:
50
58
51
59
export PYTHON=python3
52
export QT5DIR=/usr/local/opt/qt5 # help pyinstaller find the qt5 path
60
export QT5DIR=/usr/local/opt/qt@5.7 # help pyinstaller find the qt5 path