我试图在AWS中运行python代码,在运行测试时,我得到了aws的异常。 "errorMessage": "The 'psycopg2>=2.5' distribution was not found and is required by the application.egg-info└── sqlalchemy_redshift-0.7.1.dist-info
>>
在psycopg2文档中,它引用了一个充满乐趣的属性,以安全地构造strings。然而,我在python 3上的安装(应该是来自PyPI的最新版本)不包含这样的属性:# ImportError: cannot import name'sql'
print(dir(psycopg2)) # no mention of sql, although di
Collecting psycopg2 Complete output from command python setup.pysetup.py egg_info" failed with error code 1 in 每次尝试运行pip install psycopg2时,都会得到上述错误。我安装了Python3.5 x86