我尝试将 psycopg2 安装为:
pip install psycopg2
它给出了错误pg_config
。我检查了一些 stackoverflow 笔记并安装了 PostgreSQL。pg_config
添加了in的路径$PATH
。
现在它给出以下错误:
LINK : fatal error LNK1181: cannot open input file 'libpq.lib'
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.14.26428\\bin\\HostX86\\x64\\link.exe' failed with exit status 1181
对此有什么帮助吗?