Rotten-Grapes-Pvt-Ltd / geopython-workshop

The Doing Geospatial in Python Workshop (mainly provided at FOSS4G events)
https://geopython.github.io/geopython-workshop
Other
0 stars 1 forks source link

Setup blog for windows machine #1

Open krishnaglodha opened 11 months ago

krishnaglodha commented 11 months ago

scratch notes for windows installation. To be moved to readme inside jupyter dir

amanbagrecha commented 11 months ago

using micromamba to setup environment on windows

step1:

Invoke-Webrequest -URI https://micro.mamba.pm/api/micromamba/win-64/latest -OutFile micromamba.tar.bz2

step2:

# untar the micromamba.tar.bz2 folder and move exe file to root directory
MOVE -Force micromamba\Library\bin\micromamba.exe micromamba.exe

step3:

# You can use any location as your base prefix
$Env:MAMBA_ROOT_PREFIX="$HOME\micromambaenv"

step4:

# Invoke the hook
.\micromamba.exe shell hook -s powershell | Out-String | Invoke-Expression

step5:

.\micromamba.exe shell init -s powershell -p "$HOME\micromambaenv"

step6:

# create environment from yaml file and activate
micromamba create -f ./test/env_win.yaml -y
micromamba activate geoenv

installing git

amanbagrecha commented 11 months ago

installing git

step1: Download the installer from https://git-scm.com/download/win

step2: Run the Git-2.42.0.2-64-bit execution file and select next for every option

step3: either use git bash or your fav terminal (command prompt or powershell)


Clone the repository

Click on https option from Code dropdown and copy the text within. image

Now run the following command in the directory you want to clone the repository. In my case it is the following

git clone https://github.com/Rotten-Grapes-Pvt-Ltd/geopython-workshop.git
amanbagrecha commented 11 months ago

packages installation and new environment

micromamba create -n myenv python=3.10 matplotlib geopandas jupyterlab rasterio bokeh ipyleaflet -c conda-forge