Skip to content

Instantly share code, notes, and snippets.

@tommylees112
Last active October 28, 2021 15:09
Show Gist options
  • Save tommylees112/c77af7a14037308a0d0194c0d64f5ef3 to your computer and use it in GitHub Desktop.
Save tommylees112/c77af7a14037308a0d0194c0d64f5ef3 to your computer and use it in GitHub Desktop.
Environment with rasterio, skimage, pytorch, xarray, networkx
conda create -n w2w python=3.8 --yes
conda activate w2w
conda install -c conda-forge pytorch xarray=0.16 pytorch torchvision cudatoolkit --yes
conda install dask --yes
conda install -c conda-forge rasterio scikit-image --yes
conda install -c conda-forge seaborn=0.11 --yes
conda install -c anaconda networkx --yes
conda install -c conda-forge zarr gcsfs netcdf4 numba tqdm jupyterlab tensorboard ipython pip ruamel.yaml descartes statsmodels scikit-learn black mypy --yes
conda install -c conda-forge geopandas --yes
conda install -c conda-forge cdsapi --yes
pip install ecmwf-api-client
# Install gsutil: https://cloud.google.com/storage/docs/gsutil_install#linux
cd ~
curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-349.0.0-linux-x86_64.tar.gz
tar -xvzf google-cloud-sdk-349.0.0-linux-x86_64.tar.gz
./google-cloud-sdk/install.sh
# restart shell
exec $SHELL
# need to initialise cloud login
# gcloud auth login
# gcloud auth application-default login
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment