I am using Blender 2.9 (and its corresponding python 3.9) on MacOS (BigSur 11.4). I want to use pip to install scipy so that I can use it within Blender either in the console or running a script. When I try to use or upgrade Blender's pip, I get a broken pipe error.
I run:
bin/python3.9 lib/python3.9/ensurepip
and my output is:
ERROR: Pipe to stdout was broken
Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>
BrokenPipeError: [Errno 32] Broken pipe
Frustratingly, when I try to run:
bin/python3.9 -m pip install --upgrade pip
I get the same thing plus this message telling me to upgrade using the command that just failed.
ERROR: Pipe to stdout was broken
WARNING: You are using pip version 20.2.3; however, version 21.3.1 is available.
You should consider upgrading via the '/Applications/Blender.app/Contents/Resources/2.93/python/bin/python3.9 -m pip install --upgrade pip' command.
Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>
BrokenPipeError: [Errno 32] Broken pipe
The only thing I found was this github issue where a user of pip encountered the same error when using pip list | head
which they seemed to have fixed, and makes sense because they explicitly used the pipe. When I am using pip in this case, I don't know what exactly is calling pipe so I don't know where the error is really coming from.