Go to file
Mike Blume dcf097b55f use futuristic division
Python used to use C-style division, where division of two ints was
truncated, and division involving a float resulted in a float.

This is confusing, because you often can't tell from looking at a
line of code in isolation what sort of division it's supposed to do.

With 'from __future__ import division' Python ensures that division is
always explicit.

// means (floored) integer division
/ means float division

regardless of argument types.

This should make the source a bit clearer now, as well as removing one
obstacle if Anki is ever ported to Python 3.
2013-05-05 11:09:16 -07:00
anki use futuristic division 2013-05-05 11:09:16 -07:00
aqt use futuristic division 2013-05-05 11:09:16 -07:00
designer preliminary preview support 2013-05-04 15:45:57 +09:00
oldanki fix another media-related upgrade issue 2013-02-22 11:27:14 +09:00
tests fix import test file 2013-04-11 18:51:38 +09:00
thirdparty update to latest httplib2 2012-12-22 13:31:16 +09:00
tools fix unit tests 2012-12-21 20:17:31 +09:00
.gitignore fix i18n on linux install 2012-12-21 18:04:26 +09:00
anki.1 merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00
anki.bat tweak .bat 2012-12-21 19:23:22 +09:00
anki.desktop merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00
anki.png merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00
anki.xml merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00
anki.xpm merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00
LICENSE merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00
LICENSE.logo merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00
Makefile fix make install 2012-12-21 18:04:13 +09:00
README automatically fix 1.2 errors when upgrading 2013-01-08 09:43:29 +09:00
README.development mention system install conflicts 2013-01-19 06:38:16 +09:00
runanki fix i18n on linux install 2012-12-21 18:04:26 +09:00

Anki
-------------------------------------

Prerequisites
---------------

To install the prerequisites on Ubuntu/Debian, please use the following
command:

sudo apt-get install python-qt4 mplayer lame libportaudio2 python-sqlalchemy

If you're on another distribution the packages may be named differently, so
please consult your package manager.

Your Python version will need to be 2.6 or 2.7 (not 3+), and both Qt and PyQt
need to be 4.7 or later.

Installation & Running
------------------------

Anki does not need installing, and can be run from the directory it is
extracted to. If you extracted it to ~/anki-2.0 for example, you can run Anki
by simply typing ~/anki-2.0/runanki in a terminal.

If you'd like to install it system wide, change to the folder you extracted it
to, and run 'sudo make install'. If you need to uninstall Anki in the future,
you can do so by typing 'sudo make uninstall'.

More information
-----------------

For more information and the latest version, please see the website at:

http://ankisrs.net/