Member-only story

Install libraries for geospatial analysis on Windows.

GeoSense ✅
2 min readDec 12, 2022

--

This article shows you how to install Windows Subsystem for Linux (WSL) and create a conda env for geospatial analysis.

Geospatial analysis.

1. Install Linux on Windows with WSL

Prerequisites

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.

wsl --install

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.

Install Windows Terminal.

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:
bash Miniconda3.sh
  • 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:
rm Miniconda3.sh
  • Finally, install the program wget using 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…

--

--

GeoSense ✅
GeoSense ✅

Written by GeoSense ✅

🌏 Remote sensing | 🛰️ Geographic Information Systems (GIS) | ℹ️ https://www.tnmthai.com/medium

Responses (1)

Write a response