Hi, I need to install a Python package (for Python bundled with Blender) and I like to use pip for this. It seems pip is not installed out-of-the box and I have tried to install it as follows (latest build of Blender 2.8):
cd <path to blender>\2.80\python\bin python.exe -m ensurepip
This installes pip here:
<path to blender>\2.80\python\Scripts\pip3.exe
The problem is that when I list installed packages, pip will not list the packages already installed in site-packages:
cd <path to blender>\2.80\python\Scripts pip3.exe list Package Version ------------- -------- pip 10.0.1 setuptools 39.0.1
E.g. “numpy” is already installed in site-packages, but not detected by pip. This causes problems when I try to install e.g. “opencv-python” as that package is depending on numpy. Pip will try to install numpy on top of the already exisiting numpy, causing errors…
I found a workaround by renaming the existing numpy to “_numpy”, then pip works as expected and installs numpy and opencv-python in site packages, I would like to avoid this hack.
Am I doing something wrong when installing pip as above?