sudo pip3在Google Cloud功能上安装

我有一个名为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文件指定该错误。

关于如何使我的功能正常工作的任何建议?

iCMS 回答:sudo pip3在Google Cloud功能上安装

该错误表明您的依赖项之一是可卸载的。

看起来kiteconnect依赖项当前与Python 3.7不兼容,这是Cloud Functions在其运行时使用的Python版本:https://github.com/zerodhatech/pykiteconnect/issues/55

您需要等到维护者发布与Python 3.7兼容的新版本。

本文链接:https://www.f2er.com/2210674.html

大家都在问