你可以使用pip来安装psycopg2库。但是,由于psycopg2是一个用C语言编写的扩展,因此在Windows上安装时可能需要编译,这可能需要安装额外的编译工具。为了简化安装过程,推荐使用psycopg2-binary包,它是一个预编译的二进制版本,安装起来更简单。 安装命令 bash pip install psycopg2-binary ...
你为什么要安装psycopg2-binary而不只是安装psycopg2?还要确保按照此答案中的建议在 PATH 中有 PostgreSQL ...
pip install psycopg2pip install psycopg2-binaryERROR: Command errored out with exit status\\setup.py'"'"'; __file__='"'"'C:\\User 浏览0提问于2020-11-02得票数 0 回答已采纳 5回答 在Windows中安装psycopg2时出错 、、 我尝试将psycopg2安装为:pip install psycopg2 它为pg_config提供了错误。我...
windows安装psycopg2问题解决方案 在windows下使用 easy_installpsycopg2安装psycopg2时安装成功,但在python中import psycopg2时却提示如下错误: from psycopg2._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID ImportError: DLL load failed: 找不到指定的模块。 为何?? ImportError: DLL load failed: The specif...
1)由于pip安装的psycopg2自带libpq,因此使用“pip install --no-binary :all: psycopg2”安装,使之不自带libpq,安装完毕后,使用HGDB提供的libpq动态库。 2)将附件中的hgdb文件夹放在任意位置(路径建议只包含中文和数字),并配置环境变量,如: cmd中验证pg_config可以访问到,如: ...
C:\Python38\Scripts>pip install psycopg2-binary Collecting psycopg2-binary Using cached <url> For me also doesn't work. For a fresh Python 3.8 installation I have: pip install psycopg2-binary --no-cache-dir Collecting psycopg2-binary Downloading https://files.pythonhosted.org/packages/00/7b/a62...
问无法在windows中的虚拟环境中安装psycopg2EN我试图在我的VirtualEnv中安装VirtualEnv,一开始我遇到了错误-...
I'm getting a weird error when I try to import psycopg2. Using Python 3.7.7 ; pip version: pip 20.1 from C:\Users\blah\AppData\Local\Programs\Python\Python37\lib\site-packages\pip (python 3.7) Downloaded psycopg2 using pip $ python -m pi...
python3-psycopg2-binary (2.8.4-1) psycopg2 - Python-PostgreSQL Database Adapter Required by: python3-psycopg2 python3-pyopengl (3.1.0-1) Standard OpenGL bindings for Python Required by: grass python3-pyparsing (2.4.6-1) Python parsing module ...
由于连接的是EDB,需要pg的库psycopg2,当然能从官网进行下载(https://pypi.org/project/psycopg2/),...