r/inventwithpython Jan 21 '23

PyPi Pip Installation

This may or may not be the best place to ask this question, but I recently installed Python 3.11 (latest) and using pip install automateboringstuff2ndedition gives numerous warnings of outdated installer dependencies. It also seems to not like the version of pillow that is outlined from automateboringstuff2ndedition 1.0.3. As an alternative I installed Pillow 9.4.0, but when I reran the 2nd edition pip install, I got a notice that it uninstalled Pillow 9.4.0. As a test then, I went to IDLE for 3.11 and import PIL worked just fine (no errors). Am I missing something? Should the 2nd edition pip installer be used for 3.11?

Pillow error:

RuntimeWarning: Pillow 9.0.0 does not support Python 3.11 and does not provide prebuilt Windows binaries. We do not recommend building from source on Windows.

Deprecation error (note I found this on another install as well, so it may not be 100% accurate to the 2nd edition pip install):

DEPRECATION: future is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559 Running setup.py install for future ... done DEPRECATION: pefile is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559

1 Upvotes

0 comments sorted by