Installation¶
Using pip
¶
Note
If you are using a virtual environment, ensure it is activated.
Use the
--upgrade
(or-U
) option with pip install to get the latest stable release.
To install the latest release of PyHelpers from PyPI via pip:
> pip install --upgrade pyhelpers
To install the latest development version of PyHelpers from GitHub:
> pip install --upgrade git+https://github.com/mikeqfu/pyhelpers.git
Verification¶
To verify the installation of PyHelpers, try importing the package in an interpreter shell:
>>> import pyhelpers
>>> pyhelpers.__version__ # Check the latest version
The latest version is: 2.0.0
Note
Not all dependencies of PyHelpers are installed automatically to optimise installation requirements. If you encounter a ModuleNotFoundError or an ImportError, install the missing package(s) as indicated in the error message.
When using the package, Windows users might face issues with pip failing to install some packages. In such cases, try installing the wheel (.whl) files instead. Refer to Christoph Gohlke’s homepage for essential and downloadable wheel files.
For more general instructions on installing Python packages, refer to the Installing Packages guide.