Traceback (most recent call last):
File "db_create.py", line 6, in <module>
db.create_all()
File "/Users/nihit/Desktop/flask-intro/venv/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py", line 895, in create_all
self._execute_for_all_tables(app, bind, 'create_all')
File "/Users/nihit/Desktop/flask-intro/venv/lib/python2.7/site- packages/flask_sqlalchemy/__init__.py", line 887, in _execute_for_all_tables
op(bind=self.get_engine(app, bind), **extra)
File "/Users/nihit/Desktop/flask-intro/venv/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py", line 833, in get_engine
return connector.get_engine()
File "/Users/nihit/Desktop/flask-intro/venv/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py", line 499, in get_engine
self._engine = rv = sqlalchemy.create_engine(info, **options)
File "/Users/nihit/Desktop/flask-intro/venv/lib/python2.7/site-packages/sqlalchemy/engine/__init__.py", line 362, in create_engine
return strategy.create(*args, **kwargs)
File "/Users/nihit/Desktop/flask-intro/venv/lib/python2.7/site-packages/sqlalchemy/engine/strategies.py", line 74, in create
dbapi = dialect_cls.dbapi(**dbapi_args)
File "/Users/nihit/Desktop/flask-intro/venv/lib/python2.7/site-packages/sqlalchemy/dialects/postgresql/psycopg2.py", line 462, in dbapi
import psycopg2
File "/Users/nihit/Desktop/flask-intro/venv/lib/python2.7/site-packages/psycopg2/__init__.py", line 50, in <module>
from psycopg2._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
ImportError: dlopen(/Users/nihit/Desktop/flask-intro/venv/lib/python2.7/site-packages/psycopg2/_psycopg.so, 2): Library not loaded: libssl.1.0.0.dylib
Referenced from: /Users/nihit/Desktop/flask-intro/venv/lib/python2.7/site-packages/psycopg2/_psycopg.so
Reason: image not found
我正在使用postgreAPP,我甚至在这里检查了其他人的问题 psycopg2 installation error - Library not loaded: libssl.dylib
lib文件在我的电脑上的这个文件夹中
/Applications/Postgres.app/Contents/Versions/9.4/lib/libssl.1.0.0.dylib
但仍无法找到解决方案。