pip install --upgrade pydriosm
To install the most recent version of pydriosm hosted on GitHub:
pip install --upgrade git+https://github.com/mikeqfu/pydriosm.git
Pip may fail to install the dependency package GDAL. In such a circumstance, try instead to install their .whl files, which can be downloaded from the web page of the archived “unofficial Windows binaries for Python extension packages” (by Christoph Gohlke) or a mirror site (by Erin Turnbull). For how to install a .whl file, see the answers to this StackOverflow question.
If using a virtual environment, make sure it is activated.
It is recommended to add pip install the option
-U) to ensure that you are getting the latest stable release of the package.
Non-essential dependencies (e.g. GeoPandas) of pydriosm are not enforced to be installed along with the installation of the package. This is intended to optimise the installation requirements. If a ModuleNotFoundError or an ImportError pops out when importing/running a function or a method, first try to install the module(s)/package(s) mentioned in the error message, and then try to import/run the function or method again.
For more general instructions on the installation of Python packages, please refer to the official guide of Installing Packages.
To check whether pydriosm has been correctly installed, try to import the package via an interpreter shell:
>>> import pydriosm >>> pydriosm.__version__ # Check the latest version
The latest version is: 2.1.1