0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

pip install django psycopg2-binaryした時に発生したエラーあれこれ

Posted at

環境

・Windows

仮想環境に入れてない

$ .\venv\Scripts\Activate.ps1
Python

【解決策】
・[設定]>[アプリ]>[アプリの詳細設定]>[アプリの実行エイリアス]を開く
・アプリインストーラの項目を参照
・python.exe, python3.exeをオフにする


pg_configに関するエラー

$ Error: pg_config executable not found.

【解決策】
・PostgreSQLをダウンロード


django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 or psycopg module

$ python manage.py migrate
(略)
$ django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 or psycopg module

【解決策】
・pip install django psycopg2-binaryでダウンロードしていたが下記に変更
・python -m pip install "psycopg[binary]"

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?