Fix Anki should be run with python2.x.

When you start anki you might encounter something like:

[patrick@localhost anki-1.2.6]$ ./anki
Traceback (most recent call last):
  File "./anki", line 7, in 
    raise Exception("Anki should be run with python2.x.")
Exception: Anki should be run with python2.x.

If you are running a up-to-date linux distribution python2 should be installed but it is possible that the default version is set to python(1). However there is a very simple fix. Just open the anki (Anki Root Folder) file in a texteditor and replace the first line:

#!/usr/bin/env python



now it should be no problem to run Anki

Leave a comment

Your email address will not be published. Required fields are marked *