joh*_*n2x 13 python django postgresql psycopg2
>>> import psycopg2
Traceback (most recent call last):
File "", line 1, in
File "C:\Python26\lib\site-packages\psycopg2\__init__.py", line 60, in
from _psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
ImportError: DLL load failed: The application has failed to start because its si
de-by-side configuration is incorrect. Please see the application event log for
more detail.
我在尝试导入psycopg2时遇到此错误..我已经搜索了几天,但没有找到解决方案.我已经尝试安装Visual C++ 2008包,但我仍然得到相同的错误.
Car*_*rra 18
在Windows上,确保您的路径包含Postgres bin目录.在我的机器上它是c:\ Programs\PostgreSQL\9.3\bin.