Unble to install requirements for summarization
I am following this huggingface github(https://github.com/huggingface/transformers/tree/master/examples/pytorch/summarization) for summarization but not able to install packages from requirements.
Command used:

pip install -r requirements.txt

For your information I am trying this Intel oneapi devcloud.Please find the below error.


env: ‘pkg-config’: No such file or directory
    Failed to find sentencepiece pkg-config
    ----------------------------------------
ERROR: Command "/home/uxxxxx/.conda/envs/env/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/home/uxxxx/tmp/pip-install-ld2o4xe1/sentencepiece/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /home/uxxxxx/tmp/pip-record-tl0qz8f6/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /home/uxxxxx/tmp/pip-install-ld2o4xe1/sentencepiece/

Please use "pip install --user &lt;package&gt;" to install user packages.
Please visit the forums at: https://software.intel.com/en-us/forums/intel-devcloud



Thanks in Advance!

Try installing pkg-config and sentencepiece separately.
sudo apt-get install pkg-config
pip3 install sentencepiece== 0.19.2

Related source: Link
Also, follow the steps which @Abhijeet has mentioned below. That's kinda obvious so not reiterating it.
