擅长:python、mysql、java
<p>正如Yuva的回答所提到的,我相信目前不可能导入一个不完全用Python编写的库,文档也反映了这一点。</p>
<p>但是,如果有人来这里寻找关于如何在AWS Glue中导入python库的答案,那么这篇文章对如何使用pg8000库有一个很好的解释:
<a href="https://stackoverflow.com/questions/47081088/aws-glue-truncate-destination-postgres-table-prior-to-insert">AWS Glue - Truncate destination postgres table prior to insert</a></p>