This guide provides instructions for installing and running Rye on Windows systems.
The simplest way to get started with Rye on Windows is to download a pre-built binary:
- Visit the Rye Releases page
- Download the latest Windows binary (look for
rye_windows_amd64.zipor similar) - Extract the ZIP file to a location of your choice
- Add the extracted folder to your PATH environment variable (optional but recommended)
- Right-click on "This PC" or "My Computer" and select "Properties"
- Click on "Advanced system settings"
- Click the "Environment Variables" button
- Under "System variables", find the "Path" variable, select it and click "Edit"
- Click "New" and add the path to the folder containing the Rye executable
- Click "OK" on all dialogs to save the changes
- Open Command Prompt or PowerShell and type
ryeto start the Rye console
If you prefer to build Rye from source:
-
Install Git for Windows
- Download from git-scm.com
- Follow the installation wizard with default options
-
Install Go (Golang)
- Download from go.dev/dl
- Follow the installation wizard
- Verify installation by opening Command Prompt and typing
go version
-
Clone the Rye repository
git clone https://github.com/refaktor/rye.git cd rye -
Optionally switch to a specific branch
git checkout v0.0.90prepThis is useful if you want to use a specific version or if the main branch is not what you need.
-
Build Rye
go build -o bin/rye.exeFor a minimal version with fewer dependencies:
go build -tags "b_tiny" -o bin/rye.exe -
Run Rye
- To start the Rye console:
bin/rye.exe - To run a Rye script:
bin/rye.exe script.rye
- To start the Rye console:
For the best development experience, we recommend using Visual Studio Code with the Rye extension:
- Install Visual Studio Code from code.visualstudio.com
- Open VS Code and go to the Extensions view (Ctrl+Shift+X)
- Search for "ryelang" in the marketplace
- Install the Rye language extension for syntax highlighting and other features
- Check out the main README for more information about Rye
- Visit ryelang.org for documentation and examples
- Join the Reddit community for discussions and updates