Install PIL Button Doesn't Work #103

Open
opened 2026-10-14 21:36:41 +00:00 by VCross · 1 comment

The Install PIL button does not actually do anything because of changes to Blender, the code that executes when pressing the button tries to run the command with --user, which the console will tell you is no longer supported.

I managed to install PIL myself by running this script in Blender though:

import pip
pip.main(['install', 'pillow', ''])

There's also another potential problem that's entirely Blender's fault not because of KKBP though, where the version of pip Blender uses is outdated, so I had to force update the one built into Blender (it unfortunately does not use the version of pip installed in your system's command line).

The Install PIL button does not actually do anything because of changes to Blender, the code that executes when pressing the button tries to run the command with --user, which the console will tell you is no longer supported. I managed to install PIL myself by running this script in Blender though: import pip pip.main(['install', 'pillow', '']) There's also another potential problem that's entirely Blender's fault not because of KKBP though, where the version of pip Blender uses is outdated, so I had to force update the one built into Blender (it unfortunately does not use the version of pip installed in your system's command line).
Owner

Hi, the plugin uses the built in wheel method of installing pillow now. If you update to the latest version (9.5.0) it should work

Basically it runs these commands to download the wheel for the specific version of python blender is running:
from pip import _internal
_internal.main(['download', 'pillow', '--dest', kkbp_wheels_folder])

Then it fills in the wheels section of the blender_manifest.toml file, disables kkbp, and re-enables it. The next time blender opens, it finds the pillow wheel and installs it automatically

I've tested this method on blender 4.5 to 5.2 and it's been working nicely

Hi, the plugin uses the built in wheel method of installing pillow now. If you update to the latest version (9.5.0) it should work Basically it runs these commands to download the wheel for the specific version of python blender is running: from pip import _internal _internal.main(['download', 'pillow', '--dest', kkbp_wheels_folder]) Then it fills in the wheels section of the blender_manifest.toml file, disables kkbp, and re-enables it. The next time blender opens, it finds the pillow wheel and installs it automatically I've tested this method on blender 4.5 to 5.2 and it's been working nicely
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kkbp-dev/KKBP_Importer#103
No description provided.