Jupyter notebook always launched with no problem. Until yesterday... I tried to pip install pytesseract then went off to do something else and now when I try to start jupyter notebook, this is what I get every single time:
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): Library not loaded: /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
Reason: Incompatible library version: ImageIO requires version 1.0.0 or later, but libGIF.dylib provides version 0.0.0
I figured all I had to do is pip uninstall imageio but no such luck...
In their webpage they state you need to download PIL or Pillow and not imageio, so I would just try to pip install Pillow and check again if that fixes the general problem. The link to their github:
https://github.com/madmaze/pytesseract
Prerequisites:
Python-tesseract requires Python 2.7 or Python 3.5+
You will need the Python Imaging Library (PIL) (or the Pillow fork).
Under Debian/Ubuntu, this is the package python-imaging or
python3-imaging.
Related
I am trying to import library COVSIRPHY to jupyter notebook following two steps:
pip install --upgrade covsirphy (I installed it using terminal in specific environment created in anaconda navigator)
It was installed successfully
import covsirphy as cs
I typed in directly in jupyter notebook, but it occured an error:
OSError: dlopen(/opt/anaconda3/envs/test/lib/python3.9/site-packages/lightgbm/lib_lightgbm.so, 0x0006): Library not loaded: /usr/local/opt/libomp/lib/libomp.dylib
Referenced from: /opt/anaconda3/envs/test/lib/python3.9/site-packages/lightgbm/lib_lightgbm.so
Reason: tried: '/usr/local/opt/libomp/lib/libomp.dylib' (no such file), '/usr/local/lib/libomp.dylib' (no such file), '/usr/lib/libomp.dylib' (no such file)
It is trying to search a path which does not exists, but physically the file libomp.dylib is located in other path, but I have no idea why it is seeking in this path.
I am wondering whether this library is possible to install on Mac with chip M1.
enter image description here
enter image description here
Please re-install libomp to save 'libomp.dylib' file at '/usr/lib/libomp.dylib' or update PATH to include the current path.
An alternative:
Because the latest development version of covsirphy does not depend on lightgbm, try to reinstall the latest version (>= 3.0.0.dev7).
pip install --upgrade "git+https://github.com/lisphilar/covid19-sir.git#egg=covsirphy"
When I install OpenCV, I get an error as shown below. What should I do?
ImportError: DLL load failed: The specified module could not be found.
Installing OpenCV
To install a package in Jupyter Notebook, you can use the magic %pip command.
%pip install opencv-python
If the above command doesn't work on IPython < 7.3, you can try this command instead.
!pip install --user opencv-python
Demonstration
Let's see it in action. First, you insert a new cell, type in either of the two commands above, and then execute the cell using the Ctrl + Enter shortcut.
You should now be able to import and use OpenCV without any errors.
This is usually a dependency issue. Just .pyd is not enough (all .DLLs are required).
On Windows add entries to .dll into PATH environment variable (not enough for Python 3.8 with updated security policies)
I've been trying to set up OpenCV on my computer for the past 3 days and haven't able to install it.
I have tried different versions of Python and OpenCV but nothing seems to be working as I'm always getting an error:
DLL error while importing cv2: The specified module could not be found.
Can someone help me to set up python, anaconda, OpenCV on my computer as I'm now completely frustrated as I've tried almost 30 different methods but in vain.
You can download the latest OpenCV 3.2.0 for Python 3.6 on Windows 32-bit or 64-bit machine, look for file starts withopencv_python‑3.2.0‑cp36‑cp36m, from this unofficial site. Then type below command to install it:
pip install opencv_python‑3.2.0‑cp36‑cp36m‑win32.whl (32-bit version)
pip install opencv_python‑3.2.0‑cp36‑cp36m‑win_amd64.whl (64-bit version)
I think it would be easier.
Try running:
pip install opencv-contrib-python
When I installed eric6, I was prompted with the following problems:
Python Version: 3.6.5
Found PyQt5
Found pyuic5
Sorry, please install QScintilla2 and its PyQt5/PyQt4 wrapper.
Error: DLL load failed: Cannot find the specified program!
But I have installed QScintilla via "pip install QScintilla", so what should I do next?
My operating system is Windows.
I see this error on today too , I used pip to install this module but all stop or fail, so I just can download 'whl' from pypi.org and 'pip install *.whl'. and re-install sip and PyQt5<5.9.3> before. And fixed. you can try it.
sip-4.19.4-cp36-none-win_amd64
PyQt5-5.9.2-5.9.3-cp35.cp36.cp37-none-win_amd64
QScintilla-2.10.1-5.9.1-cp35.cp36.cp37-none-win_amd64
install sequence: sip -> PyQt5 - QScintilla
During the installation phase, I get this, "Unable to find vcvarsall.bat" error. The installation process did complete, though. However, I was unable to see the shell on my desktop (I am using windows) and neither was I able to open it manually. I scoured the internet for the error but was unable to find any solution for this case.
The installation process is through a superpack that downloads Python 2.7
SimpleCV is not receiving much love in the past few years, and most of it's code don't got upgrade like the libraries it depends on.
The problem you got is the Superpack trying to compile an older version of OpenCV.
When running the Superpack, you should have seen and redtext error, and if you try to run a code it should show you something like this:
File "C:\Python27\lib\site-packages\SimpleCV\base.py", line 59, in <module>
raise ImportError("Cannot load OpenCV library which is required by SimpleCV")
ImportError: Cannot load OpenCV library which is required by SimpleCV
There are a few paths you can try from there:
1. You can try to install Microsoft Visual C++ Compiler for Python 2.7
Uninstall everything SuperPack installed in your PC or it may not work
It may fixes some other uses when using pip.
Now you have to install SimpleCV again.
2. Try to install OpenCV(2.3) on your own:
You can use pip for it, just remember to chose 32bits to keep compatibility with (Super Pack)
Just run on CMD
pip install OpenCV or python -m pip install OpenCV
3. Give up on SuperPack and install everything on your own.
You can try this guide
https://github.com/sightmachine/SimpleCV#windows-7vista
Or use pip for all dependencies
numpy (Numpy+MKL make sure to install this one first)
scipy
PIL
ipython
svgwrite
pygame==1.9.1release
OpenCV
You can find a useful list of wheels here
http://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv
Sources:
https://blogs.msdn.microsoft.com/pythonengineering/2016/04/11/unable-to-find-vcvarsall-bat/
http://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv
https://github.com/sightmachine/SimpleCV#windows-7vista