Jupyter doesn't run due to change in Pillow
See original GitHub issuefrom deoldify.visualize import * plt.style.use('dark_background') import warnings warnings.filterwarnings("ignore", category=UserWarning, message=".*?Your .*? set is empty.*?")
Throw
ImportError: cannot import name 'PILLOW_VERSION' from 'PIL' (/home/ubuntu/miniconda3/envs/deoldify/lib/python3.7/site-packages/PIL/__init__.py)
And from that location
# VERSION was removed in Pillow 6.0.0.
# PILLOW_VERSION was removed in Pillow 9.0.0.
# Use __version__ instead.
__version__ = _version.__version__
del _version
Issue Analytics
- State:
- Created a year ago
- Comments:16 (2 by maintainers)
Top Results From Across the Web
Reading image using Pillow fails in Jupyter notebook
The problem was related to another import: I was importing Tensorflow before PIL, which caused the problem. Same issue ...
Read more >Installed package won't import in notebook #2359 - GitHub
I'm using the notebook from a conda env, and have the environment set up with all of my required packages installed.
Read more >Installing Python Packages from a Jupyter Notebook
I installed package X and now I can't import it in the notebook. ... installs the package in the currently-running Jupyter kernel (thanks...
Read more >Trying to understand which environment is active when ...
According to the docs, when I start a Jupyter notebook from the terminal it should start in the virtual environment (venv).
Read more >3 Ways to Add Images to Your Jupyter Notebook - Essi Alizadeh
Approach 1: Add an image from a local file · The local or absolute path provided may not work well on another system....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hey everyone-
I’ve got fixes in for this and a bunch of other stuff (like supporting the latest GPUs with the latest version of PyTorch). Hopefully you guys should be good to go now.
@prettydeep Thanks a lot it works! I had almost given up on installing DeOldify before you helped me out. I do appreciate your assistance 😃