这似乎是一个经常出现的问题,但那些问题似乎大多与PyCharm有关。我不确定拟议的解决方案是否适用于仅在尝试导入databricks-api python模块时才会发生的情况。我正在从Anancona发行版安装的Windows 10上运行Python 3.8。
这是我收到的错误消息:
Traceback (most recent call last):
File "pipeline_deliverability_conversation.py", line 2, in <module>
from transfer import *
File "D:\messages\transfer.py", line 10, in <module>
from databricks_api import DatabricksAPI
File "D:\Anaconda\lib\site-packages\databricks_api\__init__.py", line 1, in <module>
from databricks_api.databricks import DatabricksAPI
File "D:\Anaconda\lib\site-packages\databricks_api\databricks.py", line 3, in <module>
from databricks_cli.sdk import ApiClient
File "D:\Anaconda\lib\site-packages\databricks_cli\sdk\__init__.py", line 55, in <module>
from .api_client import ApiClient
File "D:\Anaconda\lib\site-packages\databricks_cli\sdk\api_client.py", line 35, in <module>
import ssl
File "D:\Anaconda\lib\ssl.py", line 98, in <module>
import _ssl # if we can't import it, let the error propagate
ImportError: DLL load failed while importing _ssl: The specified module could not be found.