win10 python3.7環境下安裝ldap

  1. 檢查python pip安裝支持版本

C:\Users\tanggaomeng>python
Python 3.7.0 (default, Jun 28 2018, 08:04:48) [MSC v.1912 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pip
>>> print(pip.pep425tags.get_supported())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'pip' has no attribute 'pep425tags'
>>> import pip._internal
>>> print(pip._internal.pep425tags.get_supported())
[('cp37', 'cp37m', 'win_amd64'), ('cp37', 'none', 'win_amd64'), ('py3', 'none', 'win_amd64'), ('cp37', 'none', 'any'), ('cp3', 'none', 'any'), ('py37', 'none', 'any'), ('py3', 'none', 'any'), ('py36', 'none', 'any'), ('py35', 'none', 'any'), ('py34', 'none', 'any'), ('py33', 'none', 'any'), ('py32', 'none', 'any'), ('py31', 'none', 'any'), ('py30', 'none', 'any')]
>>>

可知,該主機庫文件支持的版本爲:cp37-cp37m-win_amd64
2. 下載ldap安裝包
下載地址:https://www.lfd.uci.edu/~gohlke/pythonlibs/#python-ldap
在這裏插入圖片描述
3. 安裝
pip install python_ldap-3.2.0-cp37-cp37m-win_amd64.whl
在這裏插入圖片描述

發佈了127 篇原創文章 · 獲贊 101 · 訪問量 7萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章