如何解决无法在谷歌云运行上安装 jsonnet
我正在尝试使用 jsonnet python 包构建用于在 google cloud 上部署代码的映像,但无法安装 jsonnet,并出现以下错误。有什么想法可以解决这个问题吗?
Running setup.py install for jsonnet: started
Running setup.py install for jsonnet: finished with status 'error'
[91m ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python -u -c 'import sys,setuptools,tokenize; sys.argv[0] = '"'"'/tmp/pip-install-omf9pb8l/jsonnet_ec2d6dbf69014cee8b4fe5227a52a519/setup.py'"'"'; __file__='"'"'/tmp/pip-install-omf9pb8l/jsonnet_ec2d6dbf69014cee8b4fe5227a52a519/setup.py'"'"';f=getattr(tokenize,'"'"'open'"'"',open)(__file__);code=f.read().replace('"'"'\r\n'"'"','"'"'\n'"'"');f.close();exec(compile(code,__file__,'"'"'exec'"'"'))' install --record /tmp/pip-record-3h0ew2u0/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/jsonnet
cwd: /tmp/pip-install-omf9pb8l/jsonnet_ec2d6dbf69014cee8b4fe5227a52a519/
Complete output (4 lines):
running install
running build
running build_ext
error: [Errno 2] No such file or directory: 'make'
----------------------------------------
解决方法
正如 DazWilkin 先生所说,错误与编译有关。要解决此问题,您必须使用 make
apt-get -y install build-essential
例如
RUN apt update -y && apt -y install build-essential git && git clone https://github.com/google/jsonnet.git && cd jsonnet && make
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。