我遵循这个huggingface github(https://github.com/huggingface/transformers/tree/master/examples/pytorch/summarization)进行总结,但无法根据需求安装软件包
使用的命令:
pip install -r requirements.txt
有关您的信息,我正在尝试此Intel oneapi devcloud。请查找以下错误
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 <package>" to install user packages.
Please visit the forums at: https://software.intel.com/en-us/forums/intel-devcloud
提前谢谢
为了确保能够成功运行示例脚本的最新版本,必须从源代码安装库,并安装一些特定于示例的需求
为此,请在新的虚拟环境中执行以下步骤:
然后将cd放入您选择的示例文件夹中并运行
尝试分别安装pkg config和sentencepiece
相关资料来源:Link
此外,请遵循@Abhijeet在下面提到的步骤。这很明显,所以不要再重复了
相关问题 更多 >
编程相关推荐