Dear Anki community
I have just started using Anki and I can’t believe I haven’t come across this software earlier. Unfortunately I do not have admin access to my work PC and so cannot install Anki there. There are some courses that I need to follow at work for which Anki would be very useful. The company’s IT department won’t install Anki as it is not in the Approved list of softwares for the company.
Could you please advise how I can use Anki on my work PC without Admin rights? Anki web is not useful as I need to create decks(with images) from my work PC.
Looking forward to your feedback!
Dear Anki community
Anki doesn’t normally require admin access to be installed and run.
But if it was blocked by a group policy or something similar, you have to reach out to your company to ask them to whitelist it.
You may want to try this:
A completely alternative solution would be to create a live system. This is probably a bit harder to achieve than running Anki from a flash drive, as proposed by @cqg, impossible if your work PC does not allow you to boot from a usb stick (some companies deny this, some don’t…), but otherwise it’s much more flexible because you would suffer no limitations on what you could install on your system (if you make it persistent, which I recommend), and you would even be able to run Anki on any computer you come across, no matter the restrictions on this computer (except being able to boot on a usb stick).
If you want to do this, be aware that although it’s a bit tricky, there are tons of tutorial for any kind of particular setup you might want to have, so at first it’s going to require some time but you’re not going to be lost.
Anki installs and starts just fine without admin rights. The only issue is that the installer is packaged in a way that demands them. This can be bypassed. This works for me:
- Download the Anki installer. We’ll assume it’s called
anki-2.1.49-windows.exeand that it’s downloaded to your
Downloadsfolder (the one with the blue downward arrow icon in Explorer).
- Push Start and search for “Command Prompt”. Run it. A black command window appears.
- Take note of the path to the left of the
C:\Users\userfor me. Select it with the mouse (excluding the
>) and push Return to copy it to the clipboard.
- Enter the following commands, pushing Return after each line:
set __COMPAT_LAYER=RUNASINVOKER cd Downloads anki-2.1.49-windows.exe
- The Anki installer should open. The default install path is
C:\Program Files\Anki, but we can’t write there.
- Replace the path by pasting from the clipboard and append a subdirectory you like. Don’t use any “special characters” for this (see note below). I’ll use
\Anki. My home path is
C:\Users\user, so my install path box now says
- Copy the whole path to the clipboard
- Click “Install” to complete the installation
- This way of installing doesn’t seem to create start menu icons. Open an Explorer window, paste the Anki installation path into the address bar and press Return
- There should be an
anki.exein the folder you’re looking at. Run it, or create a shortcut, or whatever.
Note: It seems Anki refuses to start if the install path has special characters. I.e. it installed but then didn’t start properly from
C:\Users\俺様\Anki (on a Japanese Windows).
Wow… thank you all for your responses! Appreciate your support. I will try out the solutions mentioned and check if these work
If you just want to review cards or create very basic cards you could also just use AnkiWeb.
Does this still occur with 2.1.50beta2?
Yes, but the behavior is different.
On a fresh install (i.e. without
prefs21.db), the initial language selection screen comes up, and after choosing a language and clicking “Yes”, Anki manages to start
mpv.exe, but then dies silently.
 PyInstaller Bootloader 3.x  LOADER: executable is C:\Users\俺様\Anki\anki-console.exe  LOADER: homepath is C:\Users\俺様\Anki  LOADER: _MEIPASS2 is NULL  LOADER: archivename is C:\Users\俺様\Anki\anki-console.exe  LOADER: C:\Users\俺様\Anki\anki-console.exe contains a digital signature  LOADER: No need to extract files to run; setting extractionpath to homepath  LOADER: SetDllDirectory(C:\Users\俺様\Anki)  LOADER: Already in the child - running user's code.  LOADER: Python library: C:\Users\俺様\Anki\python38.dll  LOADER: Loaded functions from Python library.  LOADER: Manipulating environment (sys.path, sys.prefix)  LOADER: sys.prefix is C:\Users\俺様\Anki  LOADER: Pre-init sys.path is C:\Users\俺様\Anki\base_library.zip;C:\Users\俺様\Anki  LOADER: Setting runtime options  LOADER: Initializing python  LOADER: Overriding Python's sys.path  LOADER: Post-init sys.path is C:\Users\俺様\Anki\base_library.zip;C:\Users\俺様\Anki  LOADER: Setting sys.argv  LOADER: setting sys._MEIPASS  LOADER: importing modules from CArchive  LOADER: extracted struct  LOADER: callfunction returned...  LOADER: extracted pyimod01_os_path  LOADER: callfunction returned...  LOADER: extracted pyimod02_archive  LOADER: callfunction returned...  LOADER: extracted pyimod03_importers  LOADER: callfunction returned...  LOADER: Installing PYZ archive with Python modules.  LOADER: PYZ archive: PYZ-00.pyz  LOADER: Running pyiboot01_bootstrap.py  LOADER: Running pyi_rth_win32comgenpy.py  LOADER: Running pyi_rth_multiprocessing.py  LOADER: Running pyi_rth_certifi.py  LOADER: Running pyi_rth_pyqt5.py  LOADER: Running pyi_rth_pkgres.py  LOADER: Running pyi_rth_pyqt5webengine.py  LOADER: Running runanki.py Qt warning: Qt WebEngine resources not found at C:/Users/?�L?l/Anki/PyQt5/Qt/resources. Trying parent directory... Qt warning: Qt WebEngine resources not found at C:/Users/?�L?l/Anki/PyQt5/Qt. Trying application directory... Qt warning: Qt WebEngine resources not found at C:/Users/���l/Anki. Trying fallback directory... The application MAY NOT work. Qt warning: Installed Qt WebEngine locales directory not found at location C:/Users/?�L?l/Anki/PyQt5/Qt/translations\qtwebengine_locales. Trying application directory... Qt warning: Qt WebEngine locales directory not found at location C:/Users/���l/Anki\qtwebengine_locales. Trying fallback directory... Translations MAY NOT not be correct. [0127/085225.609:ERROR:icu_util.cc(170)] Invalid file descriptor to ICU data received.
The last line is the only one that ends up in
debug.log in the Anki directory, also on subsequent start attempts.
This version fails immediately with a message box (both Qt5 and Qt6):
Initial setup... Preparing to run... Qt warning: Could not find the Qt platform plugin "windows" in "" Qt fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
This seems to be a file system encoding issue. I also tried running all tested versions with
set PYTHONUTF8=1, but it didn’t make a difference.
Thanks for testing. I had thought it might be an issue with the packager Anki 2.1.49 uses, but the fact that it doesn’t work in 2.1.50 seems to point to it being a bug in Qt or PyQt.