I am trying to use JDBC connection in a python Lambda function. I uploaded the py4j zip as a layer for this Lambda function. I did import py4j. It says No module named py4j. MY program is to test the JDBC connection. No need to do any SQL queries.
import py4j
from py4j.java_gateway import java_import
How to fix this error No module named py4j?