python - 由于“未加载库”错误,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
但没有这样的运气......
解决方案
在他们的网页中,他们声明您需要下载 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。
推荐阅读
- vba - 根据 InputField 值将文本输出到文档
- python - 为什么这段代码输出错误的答案?
- jmeter - 9个请求后jmeter控制器如何执行
- java - 用于 Java 的 Arcgis API 的包 com.esri.arcgisruntime.ogc.kml
- reactjs - 数据网格服务器端过滤器不适用于列中的 renderCell
- javascript - 如何在 HTML 元素后添加新行
- wordpress - 仅将主商店页面(不包括搜索)重定向到 WooCommerce 中的另一个页面
- android - ContentResolver 返回由 Google Messages 存储的韩国彩信的难以理解的主题
- c - 如何使用标准库将字符串转换为大写?
- python - 在python中捕获子进程的函数调用并在继续执行之前进行调整