Centos安装GateOne问题AttributeError: 'module' object has no attribute 'enable_pretty_logging'解决方案

原因是 tornado版本不对
要求是2.4左右的才能运行GateOne的server
运行如下命令检查tornado 版本

python -c "import tornado; print(tornado.version)"

重新安装tornado 2.4

pip uninstall tornado 
wget https://pypi.python.org/packages/2d/9a/38e855094bd11cba89cd2a50a54c31019ef4a45785fe12be6aa9a7c633de/tornado-2.4.tar.gz#md5=c738af97c31dd70f41f6726cf0968941
tar zxvf tornado-2.4.tar.gz
cd tornado-2.4
python  setup.py build
python2 setup.py install
python -c "import tornado; print(tornado.version)"

猜你喜欢

转载自blog.csdn.net/qq_42006894/article/details/86489286