Installation
To install the latest release of pydriosm from PyPI via pip:
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
Note
If using a virtual environment, make sure it is activated.
It is recommended to add pip install the option
--upgrade
(or-U
) to ensure that you are getting the latest stable release of the package.Not all dependencies of pydriosm are 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 importing/running the function again.
For Windows users, pip may possibly fail to install some packages (e.g. GDAL, Fiona and GeoPandas). In such circumstances, 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 (by Erin Turnbull).
For more general instructions on the installation of Python packages, please refer to the official guide of Installing Packages and this StackOverflow question.
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.0