github上有提供安装方法,但是实际安装部署过程中,各种报错。。。
https://github.com/guohongze/adminset
后经过不断调试,总算安装成功。特此记录一下报错解决步骤
错误1:
ERROR: pyasn1-modules 0.2.8 has requirement pyasn1<0.5.0,>=0.4.6, but you'll have pyasn1 0.4.1 which is incompatible.
解决方法:
安装新版pyasn1。方法如下:
下载符合版本要求的pyasn1源码压缩包,解压,进入文件夹
python setup.py build
python setup.py install
修改requirements.txt中pyasn1的版本
admin/abc123xyz
错误2:
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.
解决方法——》request模块会报错,修改requirements.txt直接注释掉该模块即可
可以看一下我修改后的文件requirements.txt
[root@instance-u5vn5wqr adminset-master]# cat requirements.txt django==1.11.20 tornado==5.1.1 ansible==2.7.8 sh==1.12.9 mysqlclient==1.3.12 pytest==3.0.7 celery==4.2.1 django-auth-ldap==1.7.0 python-ldap==3.1.0 django-celery-beat==1.1.1 gunicorn==19.7.1 redis==2.10.5 psutil==5.2.2 schedule==0.4.3 pymongo==3.3.0 #requests==2.20.0 django-db==0.0.7 ldap3==2.5.1 #elfinder requirements enum34==1.1.6 ipaddress==1.0.18 asn1crypto==0.23.0 bcrypt==3.1.4 cffi==1.11.2 cryptography==2.3 django-storages==1.6.5 idna==2.6 olefile==0.44 paramiko==2.4.2 Pillow==4.3.0 pyasn1==0.4.8 pycparser==2.18 PyNaCl==1.2.0 python-magic==0.4.3 pytz==2017.3 six==1.11.0 [root@instance-u5vn5wqr adminset-master]#
修改完成后,就可以正常安装了