Windows
Windows is the most common desktop operating system in companies, so many data engineers write code on it, even though the pipelines they build run on Linux servers and containers. The goal on Windows is to get a development environment that behaves like production. Since 2020 the answer has been WSL 2: a real Linux kernel running in a lightweight VM, tightly integrated with Windows.
Windows Server also still runs in data platforms: SQL Server, SSIS packages, Power BI gateways and Active Directory are common in enterprise environments you will integrate with.
Setting up for data work
| Tool | What it gives you |
|---|---|
WSL 2 (wsl --install) |
Ubuntu or another distro with a real Linux kernel. Run Python, Spark, dbt and the CLI tools exactly as on a server. |
| Docker Desktop or Podman Desktop | Linux containers, backed by WSL 2. Run PostgreSQL, Kafka or Airflow locally with Docker Compose. |
| VS Code + WSL extension | Edit in Windows, run everything inside Linux. |
| Windows Terminal | Tabs for PowerShell, WSL shells and SSH sessions. |
| PowerShell 7 | Windows’ own scripting shell, object-based rather than text-based. Useful for Windows and Azure administration. |
| winget | Command-line package manager for Windows apps. |
Common pitfalls
- Line endings. Windows uses
CRLF, LinuxLF. A shell script saved with CRLF fails in a container with/bin/bash^M: bad interpreter. Setgit config --global core.autocrlf input(or use a.gitattributesfile) and configure your editor for LF. - Slow file access across systems. Keep your project inside the WSL filesystem (
~/projects), not on/mnt/c/.... Cross-filesystem I/O is many times slower. - Paths.
C:\data\orders.csvvs/home/me/data/orders.csv. In Python usepathlib, never string concatenation with\. - Encoding. Older Windows tools write CSVs in a legacy code page (Windows-1252) or UTF-8 with a BOM. Read with an explicit
encoding=and write UTF-8. - Case-insensitive filenames.
Orders.csvandorders.csvare the same file on Windows but not on Linux, which breaks code once it is deployed. - Memory. WSL 2 can use up to half your RAM by default. Cap it in
%UserProfile%\.wslconfigif Docker plus Spark make Windows sluggish.
Learning Resources
- Windows Subsystem for Linux documentation
- Set up a WSL development environment
- Docker Desktop WSL 2 backend
- PowerShell documentation
- Windows Terminal
See also: Linux.