I first created an Ubuntu 16.04.3 desktop virtual box. It will need a decent amount of storage space, probably at least 15GB (I did 100GB).
Then I installed mini-conda. You need to download the installation file (I used wget), then install it (ex. bash Miniconda-3-latest-linux-x86_64.sh)
Now after reopening the terminal, you should be able to use conda and issue the following commands:
conda config --add channels conda-forge
conda create --yes -c conda-forge -n OSMNX python=3.6 osmnx