我已经使用
couchbase
安装了pip install couchbase
Python SDK。按照其教程here,导入以下模块后:
from datetime import timedelta
# needed for any cluster connection
from couchbase.auth import PasswordAuthenticator
from couchbase.cluster import Cluster
# needed for options -- cluster, timeout, SQL++ (N1QL) query, etc.
from couchbase.options import (ClusterOptions, ClusterTimeoutOptions,
QueryOptions)
导入时出现以下错误
Cluster
:
>>> from couchbase.cluster import Cluster
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "Path\To\Python\Env\lib\site-packages\couchbase\cluster.py", line 24, in <module>
from couchbase.analytics import AnalyticsQuery, AnalyticsRequest
File "Path\To\Python\Env\lib\site-packages\couchbase\analytics.py", line 16, in <module>
from couchbase.exceptions import (PYCBC_ERROR_MAP,
File "Path\To\Python\Env\lib\site-packages\couchbase\exceptions.py", line 28, in <module>
from couchbase.pycbc_core import exception
ImportError: DLL load failed while importing pycbc_core: The specified module could not be found.
我有同样的问题,但无法使用其他地方找到的任何提示解决问题。你找到解决方案了吗?