-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning not obvious when installing on Windows for future Python version #4960
Comments
Pillow has not yet been released for Python 3.9. A Python 3.9 wheel will be created as part of the Pillow 8.0.0 release on October 15, so if you wait a week, you may find this easier. If you would like to do this sooner than that - https://pillow.readthedocs.io/en/latest/installation.html#building-on-windows
|
The reason is given on the first line of the complete output:
But it's lost in the swamp of other output. It would be good to make it more obvious. Possibly even an early hard fail? If so, we'd still need to allow builds (with a warning?) for CIs and others who are able to build early on Windows. Maybe an env var? Do any other projects do something like this? No rush for this, it would mainly be useful in October 2021 for Python 3.10. |
One option could be using the diff --git a/setup.py b/setup.py
index 2f7c85e9..76e32acf 100755
--- a/setup.py
+++ b/setup.py
@@ -38,13 +38,14 @@ ZLIB_ROOT = None
if sys.platform == "win32" and sys.version_info >= (3, 10):
- warnings.warn(
+ import atexit
+ atexit.register(lambda: warnings.warn(
f"Pillow {PILLOW_VERSION} does not support Python "
f"{sys.version_info.major}.{sys.version_info.minor} and does not provide "
"prebuilt Windows binaries. We do not recommend building from source on "
"Windows.",
RuntimeWarning,
- )
+ ))
|
Someone has posted a Pillow 7.2.0 Python 3.9 wheel in another issue - #4953 (comment) |
They're also up at "Unofficial Windows Binaries for Python Extension Packages": |
IT's successfully install now |
I just installed it with #wagtail_cms (as its dependency) but didn't accept and gave me same error of wheel (above one) |
I'm trying to install pillow. But I'm getting this error. I didn't understand what to do. help me ,
What are your OS, Python and Pillow versions?
The text was updated successfully, but these errors were encountered: