AdminSet安装部署报错解决方法(亲测有效)

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

相关文章
相关标签/搜索