seafile 升级4到6

一个个脚本运行,提示成功。最后start seahub的时候提示错误如下:

LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub at port 8000 …
Traceback (most recent call last):
File “/home/www/seafile/seafile-server-6.0.9/seahub/thirdpart/gunicorn”, line 5, in
from pkg_resources import load_entry_point
ImportError: No module named pkg_resources
Error:Seahub failed to start.
Please try to run “./seahub.sh start” again

但是我在Python模式下可以成功import pkg_resources以及setuptools吖,是不是lib指向的问题?请问大佬们要怎么解决吖?

检查下你的 Python path 中是不是包含了这些库。