From 6c8117045fc26e5f18b0e97edd5b9db641223379 Mon Sep 17 00:00:00 2001 From: ibuler Date: Thu, 31 Mar 2016 00:14:46 +0800 Subject: [PATCH] =?UTF-8?q?fix(connect)=20=E4=BF=AE=E5=A4=8Dparamiko?= =?UTF-8?q?=E8=BF=9E=E6=8E=A5=E9=80=9F=E5=BA=A6=E7=89=B9=E4=B9=88=E6=85=A2?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 导致的原因是 pycrypto库有问题 fixed --- install/install.py | 1 + install/requirements.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/install/install.py b/install/install.py index 5d354761b..01b281a92 100755 --- a/install/install.py +++ b/install/install.py @@ -237,6 +237,7 @@ class PreSetup(object): def _require_pip(self): color_print('开始安装依赖pip包', 'green') + bash('pip uninstall -y pycrypto') ret_code = bash('pip install -r requirements.txt') self.check_bash_return(ret_code, "安装JumpServer 依赖的python库失败!") diff --git a/install/requirements.txt b/install/requirements.txt index 58d243c3a..764fc47f4 100644 --- a/install/requirements.txt +++ b/install/requirements.txt @@ -1,6 +1,6 @@ #sphinx-me==0.3 django==1.6 -pycrypto==2.6.1 +pycrypto==2.4.1 paramiko==1.16.0 ecdsa==0.13 MySQL-python==1.2.5