1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【備忘録】Djangoでサーバー起動時にsqlite3のインポートエラーが出る

Posted at

Djangoでrunserverした時にエラーが出る

Djangoでサーバーを起動させようとすると下記エラーが出る

python manage.py runserver

Watching for file changes with StatReloader
Exception in thread django-main-thread:
Traceback (most recent call last):
-------
-------
-------
ImportError: DLL load failed while importing _sqlite3: 指定されたモジュールが見つかりません。

解決法(Windows10)

設定 → 詳細情報 → システムの詳細設定 →
環境変数 → Path → 編集
からPathの通っている場所を確認し、下記よりDLした「sqlite3.dll」を格納する
https://www.sqlite.org/download.html

基本C:\Windows\System32とかに入れとけば大丈夫でしょ、多分

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?