github上有提供安裝方法,可是實際安裝部署過程當中,各類報錯。。。python
https://github.com/guohongze/adminsetmysql
後通過不斷調試,總算安裝成功。特此記錄一下報錯解決步驟git
錯誤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.
github
解決方法:redis
安裝新版pyasn1。方法以下:
下載符合版本要求的pyasn1源碼壓縮包,解壓,進入文件夾
python setup.py build
python setup.py install
修改requirements.txt中pyasn1的版本
admin/abc123xyz
sql
錯誤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直接註釋掉該模塊便可
django
能夠看一下我修改後的文件requirements.txttornado
[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]#
修改完成後,就能夠正常安裝了ui