It seems that Blender now comes with pip bundled in it, but I haven’t figured out how to use pip to install packages from the command line because I looked the Blender folder inside and out and there is no pip.exe. There’s just some scripts inside the pip folder inside the Blender folder. Anyone know how to install packages using Blender’s pip (and not the one that’s with the Python distro outside of Blender)? Blender 3.2.0 Windows 10
In Windows 10, the python interpreter installs new packages not into the Blender installation directory, but into the personal user directory. As a result, packages are installed but are not available inside Blender – they cannot be accessed from the Python console or Blender Text Editor using the “import” command. We can solve the problem by hard-coding the directory where pip should install the required packages – the “site-packages” directory located inside the directory where Blender is installed.
Here's an example command line
"c:\Program Files\Blender Foundation\Blender 3.2\3.2\python\bin\python.exe" -m pip install --upgrade scipi -t "c:\Program Files\Blender Foundation\Blender 3.2\3.2\python\lib\site-packages"
It would install
scipi if scipi were available for Python 3.10, which it currently isn't. Replace
scipi in the command line with the name of the package you want to install.