【发布时间】:2020-09-22 12:35:19
【问题描述】:
我有一个名为 kiteconnect 的模块,我想将它用于谷歌云功能。问题是普通的pip3 install kiteconnect 会抛出这个错误:
Deployment failure:
Build failed: `pip_download_wheels` had stderr output:
WARNING: Legacy build of wheel for 'kiteconnect' created no files.
Command arguments: /opt/python3.7/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-o4rwz7_o/kiteconnect/setup.py'"'"'; __file__='"'"'/tmp/pip-wheel-o4rwz7_o/kiteconnect/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-8rkohvc1
Command output: [use --verbose to show]
ERROR: Failed to build one or more wheels
error: `pip_download_wheels` returned code: 1; Error ID: 35132919
解决此错误的方法是使用sudo pip3 install kiteconnect,但我不确定如何通过用于云功能的requirements.txt 文件指定它。
有什么建议可以让我的功能正常工作吗?
【问题讨论】:
标签: python-3.x google-cloud-platform pip google-cloud-functions requirements.txt