Install ScanCode using pip
ScanCode can be installed from the public PyPI repository using pip which
the standard Python package management tool.
Note
Note that pip installation method does work on ARM chips, i.e. Linux/MacOS on Apple M1 chips, as some non-native dependencies do not have pre-built wheels for ARM (like py-ahocorasick, intbitset). See Installation prerequisites for more information. See related issues for more info:
The steps are:
Create a Python virtual environment
/usr/bin/python3 -m venv venv
To learn more about Python virtualenv, including installation and usage see this tutorial.
Activate the virtual environment you just created
source venv/bin/activate
Run
pipto install the latest versions of base utilitiespip install --upgrade pip setuptools wheel
Install the latest version of ScanCode
pip install scancode-toolkit
No errors? Congratulations! You are good to go to Running a scan.
Note
For advanced usage, scancode-toolkit-mini is an alternative package with
no default dependencies on pre-built binaries. This may come handy for some
special use cases such as packaging for a Linux or FreeBSD distro.
Uninstalling ScanCode
To uninstall ScanCode, run the following command.
pip uninstall scancode-toolkit