Note: It covers the installation of Volatility 2, not Volatility 3.
wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
python2 get-pip.py
Note
ref. https://stackoverflow.com/questions/26266437/how-to-use-python2-7-pip-instead-of-default-pip
python2 -m pip install --upgrade setuptools
Note
ref. https://stackoverflow.com/questions/11425106/python-pip-install-fails-invalid-command-egg-info
sudo apt update
sudo apt install -y python2-dev libpcre3-dev
python2 -m pip install distorm3 yara-python pycrypto pillow openpyxl ujson
git clone --depth=1 https://github.com/volatilityfoundation/volatility.git
cd volatility
python2 vol.py --info