This PR fixes two Windows-specific installation issues when using Git Bash:
Prefers python over python3 on Windows to avoid Microsoft Store alias resolution and incorrect Unix-style virtual environment paths.
Prevents WinError 32 during tito setup by skipping self-reinstall on Windows when TinyTorch is already installed, using _check_package_installed() as disussed in issue .
Tested on:
Windows 10
Git Bash (Git for Windows)
Python 3.13 (Windows-native)
Installation now completes successfully without file-lock errors.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/harvard-edge/cs249r_book/pull/1169
**Author:** [@adil-mubashir-ch](https://github.com/adil-mubashir-ch)
**Created:** 2/12/2026
**Status:** ✅ Merged
**Merged:** 2/13/2026
**Merged by:** [@profvjreddi](https://github.com/profvjreddi)
**Base:** `dev` ← **Head:** `fix/windows-install-issues`
---
### 📝 Commits (1)
- [`f2975da`](https://github.com/harvard-edge/cs249r_book/commit/f2975daa67f0e08efd5747bf4ae87590d662a0c2) Fix Windows install issues
### 📊 Changes
**2 files changed** (+40 additions, -22 deletions)
<details>
<summary>View changed files</summary>
📝 `tinytorch/site/extra/install.sh` (+10 -2)
📝 `tinytorch/tito/commands/setup.py` (+30 -20)
</details>
### 📄 Description
Related to #1165
This PR fixes two Windows-specific installation issues when using Git Bash:
1. Prefers `python` over `python3` on Windows to avoid Microsoft Store alias resolution and incorrect Unix-style virtual environment paths.
2. Prevents WinError 32 during `tito setup` by skipping self-reinstall on Windows when TinyTorch is already installed, using `_check_package_installed()` as disussed in issue .
Tested on:
- Windows 10
- Git Bash (Git for Windows)
- Python 3.13 (Windows-native)
Installation now completes successfully without file-lock errors.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/harvard-edge/cs249r_book/pull/1169
Author: @adil-mubashir-ch
Created: 2/12/2026
Status: ✅ Merged
Merged: 2/13/2026
Merged by: @profvjreddi
Base:
dev← Head:fix/windows-install-issues📝 Commits (1)
f2975daFix Windows install issues📊 Changes
2 files changed (+40 additions, -22 deletions)
View changed files
📝
tinytorch/site/extra/install.sh(+10 -2)📝
tinytorch/tito/commands/setup.py(+30 -20)📄 Description
Related to #1165
This PR fixes two Windows-specific installation issues when using Git Bash:
Prefers
pythonoverpython3on Windows to avoid Microsoft Store alias resolution and incorrect Unix-style virtual environment paths.Prevents WinError 32 during
tito setupby skipping self-reinstall on Windows when TinyTorch is already installed, using_check_package_installed()as disussed in issue .Tested on:
Installation now completes successfully without file-lock errors.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.