tencent cloud

全部产品文档
Serverless Cloud Function
SCF 工具相关问题
最后更新时间:2024-12-02 20:36:45
SCF 工具相关问题
最后更新时间: 2024-12-02 20:36:45

安装相关

setuptools 版本过旧

表现:error in scf setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers
解决方法:pip install -U setuptools

已存在的 distutils 安装包无法升级

表现:Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
解决方法: pip install -I PyYAML==x.x.x(在requirements.txt中查看具体版本)

six 版本过低

表现:pip "Cannot uninstall 'six'. It is a distutils installed project..."
解决方法: sudo pip install six --upgrade --ignore-installed six

pytz 版本过低

表现:uninstalling pytz : [error 1] Operation not permitted ...
解决办法:sudo pip install pytz --upgrade --ignore-installed six

使用相关

yaml 配置文件内有多个函数描述时,如何指定函数进行本地调试

表现:Error: You must provide a function identifier (function's Logical ID in the template). Possible options in your template: ['xxxB', 'xxxA']
解决方法:调用 local invoke 命令时带有函数名,如 scf local invoke -t template.yaml xxxA

部署时出现 [SSL: CERTIFICATE_VERIFY_FAILED] 错误

表现:使用 deploy 时,部署函数失败,报[SSL: CERTIFICATE_VERIFY_FAILED] 证书验证错误,
问题原因:mac 10.12 + Python 3.6 及以上环境中,Python 不再读取系统路径证书,导致读取证书失败,调用腾讯云 云 API 部署时 SSL 验证失败。
解决方法:在 Python 安装目录下,执行 Install Certificates.command 脚本,会自动安装 certifi 包,解决证书问题。
本页内容是否解决了您的问题?
您也可以 联系销售 提交工单 以寻求帮助。

文档反馈

联系我们

联系我们,为您的业务提供专属服务。

技术支持

如果你想寻求进一步的帮助,通过工单与我们进行联络。我们提供7x24的工单服务。

7x24 电话支持
中国香港
+852 800 906 020 (免费)
美国
+1 844 606 0804 (免费)
英国
+44 808 196 4551 (免费)
加拿大
+1 888 605 7930 (免费)
澳大利亚
+61 1300 986 386 (免费)
EdgeOne 热线
+852 300 80699
更多本地服务热线陆续新增中