Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(2 edits) (+1)

Quick tip for anyone in the future installing this. You need to make sure you install Pillow as administrator from the command prompt or it will install to the incorrect library folder location and you will get this error when trying to generate a texture:

File "C:\Users\****\AppData\Roaming\Blender Foundation\Blender\4.5\scripts\addons\PSX tools\psx_addon.py", line 213, in execute
temp_image = Image.new("RGBA", (resolution, resolution))
                     ^^^^^
 NameError: name 'Image' is not defined. Did you mean: 'image'?

You can verify the install location by running the show command:

"<path-to-blender>\4.5\python\bin\python.exe" -m pip show Pillow

This is the incorrect install location:

C:\Users\****\AppData\Roaming\python\python311\site-packages

The correct install location should be:

C:\Program Files\Blender Foundation\Blender 4.5\4.5\python\lib\site-packages

Newer versions of Blender no longer look in the users path for python libraries. I believe this was changed in Blender 4.2 so if you are running a later version this is most likely the problem.

If the install location is wrong, you can either move the "PIL" folder and the "pillow-11.3.0.dist-info" folder from the users install location to Blenders install location.

Or you can run the original install command again as admin

"<path to blender>\4.5\python\bin\python.exe" -m pip install Pillow

 which should correctly install to Blenders library location.

 This worked for me on Blender 4.5. Be sure to replace any version numbers in the examples with your version of blender and any **** with your user name.

Thanks for the details, man. I didn't have any testers, sorry 

No worries, and no need to apologize. Just glad to help figure it out. Keep the the awesome work! 

I installed it from command prompt with admin and it ended up in:

C:\Users\*****\AppData\Local\Programs\Python\Python313\Lib\site-packages

It worked fine after copy pasting to the proper directory. Im on Win11, B 4.4 

(1 edit)

I am having the same problem as DaNoobius. Pillow installs only in 

C:\Users\*****\AppData\Local\Programs\Python\Python313\Lib\site-packages

Even when I tell it to install in the path for Blender. I've tried all the solutions here so far and I'm not sure what to do. Blender keeps telling me that PIL is not installed.