To install the latest release of PyHelpers from PyPI via pip:

pip install --upgrade pyhelpers

To install the most recent version of PyHelpers hosted on GitHub:

pip install --upgrade git+


  • 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 PyHelpers 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, 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. In such circumstances, try instead to install their .whl files, which can be downloaded from the web page of the unofficial Windows binaries for Python extension packages.

  • For more general instructions on the installation of Python packages, please refer to the official guide of Installing Packages.

To check whether pyhelpers has been correctly installed, try to import the package via an interpreter shell:

>>> import pyhelpers

>>> pyhelpers.__version__  # Check the latest version
The latest version is: 2.0.0rc1