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