简体   繁体   English

ImportError:DLL加载失败:在PyCharm中找不到指定的模块

[英]ImportError: DLL load failed: The specified module could not be found in PyCharm

I am trying to work with SQLite from PyCharm. 我正在尝试使用PyCharm中的SQLite。 I downloaded SQLite, extract it and put it in C:/. 我下载了SQLite,将其解压缩并放入C:/。 Then I changed the 'PATH' to C:/. 然后我将'PATH'改为C:/。 Then I opened PyCharm and write this code: 然后我打开PyCharm并编写这段代码:

import sqlite3

connection = sqlite3.connect('db/test.db')

cursor = connection.cursor()

And I have got this error: 我有这个错误:

Traceback (most recent call last):
  File "C:/Users/nadav/.PyCharmCE2019.1/config/scratches/scratch_1.py", line 1, in <module>
    import sqlite3
  File "C:\Users\nadav\Anaconda3\lib\sqlite3\__init__.py", line 23, in <module>
    from sqlite3.dbapi2 import *
  File "C:\Users\nadav\Anaconda3\lib\sqlite3\dbapi2.py", line 27, in <module>
    from _sqlite3 import *
ImportError: DLL load failed: The specified module could not be found.

What am I missing? 我错过了什么?

I came across the same issue when I was running a code in the windows CMD prompt. 当我在Windows CMD提示符下运行代码时,我遇到了同样的问题。 The work-around i found was to run the same script in a 'Anaconda prompt' Hope this helps... 我找到的解决方法是在'Anaconda提示'中运行相同的脚本希望这有助于......

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Pycharm:ImportError:DLL 加载失败:找不到指定的模块 - Pycharm: ImportError: DLL load failed: The specified module could not be found 导入错误:DLL 加载失败:找不到指定的模块 - PyCharm - ImportError: DLL load failed: The specified module could not be found - PyCharm 可以从 pycharm 运行脚本,但不能从终端运行。 导入错误:DLL 加载失败:找不到指定的模块 - Can run script from pycharm, but not from Terminal. ImportError: DLL load failed: The specified module could not be found ImportError:DLL加载失败:找不到指定的模块。 在pycharm中导入cv2时 - ImportError: DLL load failed: The specified module could not be found. when importing cv2 in pycharm 在pycharm ImportError中:DLL加载失败:找不到指定的模块。 导入人脸识别时 - In pycharm ImportError: DLL load failed: The specified module could not be found. while importing facerecognition ImportError: DLL 在导入 cv2 时加载失败:在 pycharm 中找不到指定的模块,python 3.9 - ImportError: DLL load failed while importing cv2: The specified module could not be found in pycharm with python 3.9 Skilearn导入错误:DLL加载失败:找不到指定的模块 - Skilearn ImportError: DLL load failed: The specified module could not be found 对象检测 - 导入错误:DLL 加载失败:找不到指定的模块 - Object detection - ImportError: DLL load failed: The specified module could not be found Windows 上的 Tensorflow - ImportError:DLL 加载失败:找不到指定的模块 - Tensorflow on windows - ImportError: DLL load failed: The specified module could not be found tensorflow 2.3.1 导入错误:DLL 加载失败:找不到指定的模块 - tensorflow 2.3.1 ImportError: DLL load failed: The specified module could not be found
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM