我有一个名为kiteconnect的模块,我想将其用于google cloud功能。问题是常规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
文件指定该错误。
关于如何使我的功能正常工作的任何建议?