首页 > 解决方案 > 由于“未加载库”错误,jupyter notebook 无法启动

问题描述

Jupyter notebook 总是启动没有问题。直到昨天...我尝试 pip install pytesseract 然后去做其他事情,现在当我尝试启动 jupyter notebook 时,这就是我每次得到的结果:

 File "/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ctypes/__init__.py", line 348, in __init__
self._handle = _dlopen(self._name, mode)

OSError:dlopen(/System/Library/Frameworks/Foundation.framework/Foundation,6):未加载库:/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib 引用自:/System/ Library/Frameworks/ImageIO.framework/Versions/A/ImageIO 原因:库版本不兼容:ImageIO需要1.0.0或更高版本,但libGIF.dylib提供0.0.0版本

我想我所要做的就是pip uninstall imageio但没有这样的运气......

标签: pythonjupyter-notebookpython-tesseractpython-imageio

解决方案


在他们的网页中,他们声明您需要下载 PIL 或 Pillow 而不是 imageio,所以我会尝试 pip install Pillow 并再次检查是否可以解决一般问题。他们的github链接:

https://github.com/madmaze/pytesseract

先决条件:

Python-tesseract 需要 Python 2.7 或 Python 3.5+

您将需要 Python Imaging Library (PIL)(或 Pillow fork)。在 Debian/Ubuntu 下,这是包 python-imaging 或 python3-imaging。


推荐阅读