Find file
8235280 Jan 10, 2017
@dae @fureloka @baerrach
105 lines (72 sloc) 3.29 KB
Running from source
For non-developers who want to try this development code, the easiest way is
to use a binary package - please see:
You are welcome to run Anki from source instead, but it is expected that you
can sort out all dependencies and issues by yourself - we are not able to
provide support for problems you encounter when running from source.
Anki requires:
- Python 3.5+
- Qt 5.7.1+
- PyQt 5.7+
- mplayer
- lame
It also requires a number of Python packages, which you can grab via pip:
$ pip3 install -r requirements.txt
You will also need PyQt development tools (specifically pyrcc5 and pyuic5).
These are often contained in a separate package on Linux, such as
'pyqt5-dev-tools' on Debian/Ubuntu.
To use the development version:
$ git clone
$ cd anki
$ ./tools/
If you get any errors, you will not be able to proceed, so please return to
the top and check the requirements again.
ALL USERS: Make sure you rebuild the UI every time you git pull, otherwise you
will get errors down the road.
The translations are stored in a bazaar repo for integration with Launchpad's
translation services. If you want to use a language other than English:
$ cd ..
$ mv anki dtop # i18n code expects anki folder to be called dtop
$ bzr clone lp:anki i18n
$ cd i18n
$ ./
$ cd ../dtop
And now you're ready to run Anki:
$ ./runanki
If you get any errors, please make sure you don't have an older version of
Anki installed in a system location.
Before contributing code, please read README.contributing.
If you'd like to contribute translations, please see the translations section
Windows & Mac users
The following was contributed by users in the past and will need updating
for the latest version. It is left here in case it is any help:
I have not tested the build scripts on Windows, so you'll need to solve any
problems you encounter on your own. The easiest way is to use a source
tarball instead of git, as that way you don't need to build the UI yourself.
If you do want to use git, two alternatives have been contributed by users. As
these are not official solutions, I'm afraid we can not provide you with any
support for these.
A powershell script:
Or a way with git bash and perl:
1) Install "git bash".
2) In the tools directory, modify Locate the line that reads
"pyuic4 $i -o $py" and alter it to be of the following form:
"<python-path-string>" "<pyuic-path-string>" $i -o $py
These two paths must point to your python executable, and to, on your
system. Typical paths would be:
<python-path> = C:\\Python27\\python.exe
<pyuic-path-string> = C:\\Python27\\Lib\\site-packages\\PyQt4\\uic\\
These instructions may be incomplete as prerequisites may have already been
installed. Most likely you will need to have installed xcode
Install homebrew ( and then install Anki prerequisites:
$ brew install python PyQt mplayer lame portaudio
$ pip install sqlalchemy
Now you can follow the development commands at the start of this document.