LoginSignup
0

More than 1 year has passed since last update.

django-auth-ldap のインストール時にエラー発生

Last updated at Posted at 2023-01-07

本記事の目的

以下記事をもとに、Ubuntu20.04 に構築した Django を LDAP クライアントにしようとした。

ところが、以下手順でエラーが発生しインストール失敗。

# pip3 install django-auth-ldap

(中略)
Failed to build python-ldap
ERROR: Could not build wheels for python-ldap which use PEP 517 and cannot be installed directly

本記事では、解決方法を記載しておく。

※ Django の構築自体は以下記事を参照に実施。

※ Ubuntu20.04 のバージョン情報

$ lsb_release -a

Distributor ID: Ubuntu
Description:    Ubuntu 20.04.5 LTS
Release:        20.04
Codename:       focal

解決方法

以下記事を参考にした。

pip のバージョンが最新であることを確認後、以下実施して解決。

$ sudo apt-get install build-essential python3-dev \
    libldap2-dev libsasl2-dev slapd ldap-utils tox \
    lcov valgrind

以上で本記事はおしまいにしておく。

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