Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save d3netxer/7764e1340c2516aecc75962b02572d5e to your computer and use it in GitHub Desktop.
Save d3netxer/7764e1340c2516aecc75962b02572d5e to your computer and use it in GitHub Desktop.

If you are on a Windows machine you may run into issues with the conda install osmnx command. The problem may be installing it's geopandas dependency (you may see an error like this: 'UnsatisfiableError: The following specifications were found to be in conflict: geopandas'.

As outlined in this blog post (https://geoffboeing.com/2014/09/using-geopandas-windows/), the issue may be with some of the C extensions of the dependencies. Follow the instructions of the blog post to install geopandas using Python Wheels, before proceeding.

Used MiniConda and created a new environment.

conda create --name GOST_PublicGoods python=3.7

Activate new environment:

source activate GOST_PublicGoods

Make conda-forge the highest priority channel

conda config --add channels conda-forge

** On Windows, you should skip this following command, because OSMNX is not installing correctly using the conda-forge channel strictly. Make sure that only conda-forge channel is used (had problems with Fiona not installing correctly otherwise)

conda config --set channel_priority strict

installed osmnx

conda install -c conda-forge osmnx

installed peartree

pip install peartree

installed boltons

pip install boltons

installed nb_conda so that when jupyter notebook is started within environment it uses the same python environment https://stackoverflow.com/questions/37085665/in-which-conda-environment-is-jupyter-executing

conda install nb_conda

note: after installing either ipykernel or nb_conda may switch libgdal back to an older version. If that is the case install libgdal 2.4.0

conda install libgdal=2.4.0 -c conda-forge

note: May have an issue getting a 500 Internal Server Error when opening a Jupyter Notebook. upgrading nbconvert fixes this problem:

pip install --upgrade --user nbconvert

installed rasterio

conda install rasterio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment