开发者社区 > 云原生 > Serverless > 正文

阿里函数计算中请问函数支持python第三方库嘛?

阿里函数计算中请问函数支持python第三方库嘛?{
"errorMessage": "Module initialization error: 'Message: Unable to obtain driver for chrome using Selenium Manager.; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors/driver_location\n'",
"errorType": "UserCodeError",
"stackTrace": [
"selenium.common.exceptions.NoSuchDriverException: Message: Unable to obtain driver for chrome using Selenium Manager.; For documentation on this error",
"please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors/driver_location"
]
}selenium失败了,请求 ID
1-6549c097-d9b572fe4b352309edcd383a

实例 ID
c-6549c097-f9c683ff4d5f456bbdab。

展开
收起
小小鹿鹿鹿 2023-11-13 19:45:08 87 0
2 条回答
写回答
取消 提交回答
  • 是的,阿里云函数计算FC支持Python的第三方库,包括Selenium。然而,从你提供的错误信息来看,你的代码在启动Selenium时遇到了问题。

    这个错误信息表示无法使用Selenium Manager找到Chrome的驱动程序。这可能是因为你的环境中没有正确安装或者配置Selenium Manager。

    你可以尝试以下步骤来解决这个问题:

    1. 检查你的Python环境中是否已经安装了Selenium Manager。如果没有,你可以使用pip install selenium来安装。

    2. 检查你的环境变量中是否包含了Chrome驱动程序的路径。如果没有,你需要将驱动程序的路径添加到你的环境变量中。

    3. 检查你的代码中是否正确配置了Selenium Manager。

    4. 如果你在使用阿里云函数计算FC,你可以检查你的函数配置中是否正确配置了Python的环境。

    2023-11-30 15:17:57
    赞同 展开评论 打赏
  • 这里有例子
    5a7880f2be4629d7e4ef0a69b9b4c8bf.pnghttps://developer.aliyun.com/article/1323852?spm=a2c6h.13262185.profile.8.57b23c66OdcQjU

    想自己折腾一下可以看这个例子哈。此回答来自钉群阿里函数计算官网客户。

    2023-11-14 23:20:01
    赞同 展开评论 打赏

快速交付实现商业价值。

相关产品

  • 函数计算
  • 相关电子书

    更多
    Hologres Serverless之路:揭秘弹性计算组 立即下载
    Serverless开发平台: 让研发效能再提升 立即下载
    Serverless 引领云上研发新范式 立即下载