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]#
修改完成后,就可以正常安裝了