I must state unequivocally that this is not the only way to install osmnx on a local computer, you can also mount osmnx on a docker and run it in your notebook. This repo is for windows but the same procedure can be followed for mac users. Working with Open Street Map (OSM) is amazing when working with maps and getting information from a location from the comfort of your computer. If you need to install any other library, always do so in the terminal.Make sure to download the Python 3.7 Version for the appropriate architecture. If you encounter ImportError: cannot import name ‘gcd’ from fractions, don’t panic from the ox terminal, do a “pip3 install networkx=2.5” Download and install Anaconda: Head over to and install the latest version of Anaconda. Both GUI and command line installers are available for Windows, macOS, and Linux: If you do not wish to enter commands in a terminal window, choose the GUI installer.Keep the terminal running, do not close it just yet.Make sure you’re in the ox environment. Expedite your data science journey with easy access to training materials, how-to videos, and expert insights on Anaconda Nucleus, all free for a limited.Do not try to pip install osmnx directly in jupyter notebook unless you know what you’re doing.Additionally, it provides access to over 720 Python and R packages that can easily be installed using the conda dependency and environment manager, which is included in Anaconda. ![]() ![]() Finally, open a notebook and import osmnx as ox, and try some examples in the repo. The open source version of Anaconda is a high performance distribution and includes over 100 of the most popular Python packages for data science.The ox will require you to install jupyter notebook for that environment, do just that. ![]() This will tell anaconda to switch to the ox base/ root and this will be mirrored in the terminal as well and it will take some time but not too much. It works on Linux, OS X and Windows, and was created for Python programs but can package and distribute any software.
0 Comments
Leave a Reply. |