I tried to install pythonnet in Blender (v2.83) using Windows Power Shell:
cd "C:\Program Files\Blender Foundation\Blender 2.83\2.83\python\bin"
cd ..
.\bin\python.exe -m ensurepip
.\bin\python.exe -m pip install --upgrade pip
.\bin\python.exe -m pip install pythonnet
pythonnet is now correctly present in the pip list. This procedure worked well for example for opencv-python or python-docx.
But after the installation of pythonnet I cannot import the clr namespace in Blender console:
Traceback (most recent call last):
File "<blender_console>", line 1, in <module>
ModuleNotFoundError: No module named 'clr'
Do you have any suggestions for this problem? Thank you!
$ /path/to/blenderspython/pip install module
$\endgroup$venv
from blender's python install, or a python install of same version dot subversion, point the environment variableBLENDER_SYSTEM_PYTHON
to it and start blender from it. $\endgroup$