Windows#
Minimum Requirements#
64-bit Windows 10 (version 1703 or newer)
Administrator access to install software
Install Rust#
Visit the official Rust website (https://rustup.rs/)
Download and install rustup
During installation, accept the default options
Note
The Rust installer will offer to automatically download and install the required MSVC build tools. If you prefer a minimal install without the full Visual Studio IDE, do the following before installing Rust:
Install Visual Studio Build Tools via winget:
winget install Microsoft.VisualStudio.BuildTools
Open the Visual Studio Installer, select Build Tools, click Modify, then under Individual components, install:
MSVC Build Tools for x64/x86 (Latest)
Windows 11 SDK (or Windows 10 SDK if you’re on Windows 10)
Then proceed with the Rust installation above.
Important
Windows ARM users: After installing rustup, run the following command in a terminal, inside the project folder:
rustup target add x86_64-pc-windows-msvc
Install MSYS2#
Visit the MSYS2 website
Install it in the default location
After installation, open the MSYS2 UCRT64 terminal
Run the following command:
pacman -S git rsync
Configure the PATH environment variable#
Search for and open Edit the system environment variables in the Start menu
Click Environment Variables
Edit the Path variable under System Variables
Add the following path then reboot your computer:
C:\msys64\usr\bin
Note
If you have native Windows apps relying on Git, e.g. the PowerShell extension posh-git, you may want to install Git for Windows and put it on the path instead, as msys Git may cause issues with them. You’ll need to make sure rsync is available some other way.
Choose a good source code location#
Anki’s source files do not need to be in a specific location, but it’s best to avoid long paths, as they can cause problems. Spaces in the path may cause problems.
More#
For info on running tests, building wheels and so on, please see Development.