查看群中解决方法:pip3 install Pillow显示已经安装
Requirement already satisfied: Pillow in /usr/local/lib64/python3.6/site-packages (8.4.0)
WARNING: Running pip as the ‘root’ user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
seahub启动错误代码:
[root@localhost seafile-server-latest]# ./seahub.sh start
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/filescloud/seafile-server-7.1.5/seahub/seahub/avatar/models.py”, line 23, in
from PIL import Image
ModuleNotFoundError: No module named ‘PIL’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/home/filescloud/seafile-server-7.1.5/seahub/thirdpart/bin/gunicorn”, line 8, in
sys.exit(run())
File “/home/filescloud/seafile-server-7.1.5/seahub/thirdpart/gunicorn/app/wsgiapp.py”, line 58, in run
WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
File “/home/filescloud/seafile-server-7.1.5/seahub/thirdpart/gunicorn/app/base.py”, line 228, in run
super().run()
File “/home/filescloud/seafile-server-7.1.5/seahub/thirdpart/gunicorn/app/base.py”, line 72, in run
Arbiter(self).run()
File “/home/filescloud/seafile-server-7.1.5/seahub/thirdpart/gunicorn/arbiter.py”, line 58, in init
self.setup(app)
File “/home/filescloud/seafile-server-7.1.5/seahub/thirdpart/gunicorn/arbiter.py”, line 118, in setup
self.app.wsgi()
File “/home/filescloud/seafile-server-7.1.5/seahub/thirdpart/gunicorn/app/base.py”, line 67, in wsgi
self.callable = self.load()
File “/home/filescloud/seafile-server-7.1.5/seahub/thirdpart/gunicorn/app/wsgiapp.py”, line 49, in load
return self.load_wsgiapp()
File “/home/filescloud/seafile-server-7.1.5/seahub/thirdpart/gunicorn/app/wsgiapp.py”, line 39, in load_wsgiapp
return util.import_app(self.app_uri)
File “/home/filescloud/seafile-server-7.1.5/seahub/thirdpart/gunicorn/util.py”, line 358, in import_app
mod = importlib.import_module(module)
File “/usr/local/lib/python3.6/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 994, in _gcd_import
File “”, line 971, in _find_and_load
File “”, line 955, in _find_and_load_unlocked
File “”, line 665, in _load_unlocked
File “”, line 678, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/home/filescloud/seafile-server-7.1.5/seahub/seahub/wsgi.py”, line 25, in
application = get_wsgi_application()
File “/home/filescloud/seafile-server-7.1.5/seahub/thirdpart/django/core/wsgi.py”, line 13, in get_wsgi_application
django.setup(set_prefix=False)
File “/home/filescloud/seafile-server-7.1.5/seahub/thirdpart/django/init.py”, line 27, in setup
apps.populate(settings.INSTALLED_APPS)
File “/home/filescloud/seafile-server-7.1.5/seahub/thirdpart/django/apps/registry.py”, line 108, in populate
app_config.import_models()
File “/home/filescloud/seafile-server-7.1.5/seahub/thirdpart/django/apps/config.py”, line 202, in import_models
self.models_module = import_module(models_module_name)
File “/usr/local/lib/python3.6/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 994, in _gcd_import
File “”, line 971, in _find_and_load
File “”, line 955, in _find_and_load_unlocked
File “”, line 665, in _load_unlocked
File “”, line 678, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/home/filescloud/seafile-server-7.1.5/seahub/seahub/avatar/models.py”, line 26, in
import Image
ModuleNotFoundError: No module named ‘Image’
谢谢