小编use*_*349的帖子

AWS Glue psycopg2 安装

我正在尝试运行使用 psycopg2 操作 Redshift 实例的代码。我尝试导入一个wheel文件,因为我发现它们在Glue python作业中受支持。我在运行时看到该库已安装在端点中,但随后出现错误:

import boto3
import psycopg2
Run Code Online (Sandbox Code Playgroud)
Aug 4, 2020, 1:24:06 PM Pending execution
Processing ./glue-python-libs-92ng4pcb/psycopg2-2.8.5-cp36-cp36m-win_amd64.whl
Installing collected packages: psycopg2
Successfully installed psycopg2-2.8.5
Considering file without prefix as a python extra file s3://gluelibraries/boto3.zip
Run Code Online (Sandbox Code Playgroud)
WARNING: The directory '/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

2020-08-04T13:24:44.831+02:00 …
Run Code Online (Sandbox Code Playgroud)

python psycopg2 amazon-web-services aws-glue

5
推荐指数
2
解决办法
1万
查看次数

标签 统计

amazon-web-services ×1

aws-glue ×1

psycopg2 ×1

python ×1