AdminSet安装部署报错解决方法

github上有提供安装方法,但是实际安装部署过程中,各种报错。。。

https://github.com/guohongze/adminset

后经过不断调试,总算安装成功。特此记录一下报错解决步骤

错误1:

ERROR: ipapython 4.6.5 has requirement python-ldap>=3.0.0b1, but youll have python-ldap 2.4.15 which is incompatible. ERROR: ipapython 4.6.5 has requirement python-ldap>=3.0.0b1, but youll have python-ldap 2.4.15 which is incompatible. ERROR: pyasn1-modules 0.2.8 has requirement pyasn1<0.5.0,>=0.4.6, but youll have pyasn1 0.4.1 which is incompatible. ERROR: Cannot uninstall python-ldap. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

通过如下方式强制重新安装python-ldap和pyasn1,问题得到解决:

pip install -I python-ldap==3.0.0b1 pip install -I pyasn1==0.4.6

错误2: ERROR: pyasn1-modules 0.2.8 has requirement pyasn1<0.5.0,>=0.4.6, but youll have pyasn1 0.4.1 which is incompatible. ERROR: Cannot uninstall requests. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

pip install -I pyasn1==0.4.6

在requirements.txt文件中注释requests项即可。

经验分享 程序员 微信小程序 职场和发展