This article shows you how to install Windows Subsystem for Linux (WSL) and create a conda env for geospatial analysis.
1. Install Linux on Windows with WSL
You must be running Windows 10 version 2004 and higher (Build 19041 and higher) or Windows 11 to use the commands below.
Install WSL command
You can now install everything you need to run WSL with a single command. Open PowerShell or Windows Command Prompt in administrator mode by right-clicking and selecting “Run as administrator”, enter the wsl — install command, then restart your machine.
Install Windows Terminal (optional)
Using Windows Terminal enables you to open multiple tabs or window panes to display and quickly switch between multiple Linux distributions or other command lines (PowerShell, Command Prompt, Azure CLI, etc). You can fully customize your terminal with unique color schemes, font styles, sizes, background images, and custom keyboard shortcuts.
2. Installing Miniconda
- In your Terminal (on Windows, switch to WSL), download the Miniconda installer
curl -sL \ "https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh" > \ "Miniconda3.sh"
- Install Miniconda by entering:
- and follow the prompts, accepting all defaults. Restart your Terminal. Now your prompt should list which environment is active.
Update Conda using the command:
conda update conda
- After installation, delete the installer:
- Finally, install the program
wgetusing Conda to download any files using CLI:
conda install wget
Create an Environment Called Spatial#
conda create -n geos python
conda activate geos
conda config --add channels…