When rendering with blender script on Ubuntu 16, use the command blender — background — Python * Py, an error is reported and numpy cannot be found. But I installed numpy in CONDA environment, so I was puzzled.
Later, I learned that blender has its own Python interpreter. When running my py script, the built-in Python interpreter does not install the numpy extension library, so an error is reported.
Solution:
Find the Python interpreter directory for blender in your environment.
Open blender, shift+F4 and go to blender's Python interpreter
You can see the version of Python that comes with it, then use whereis python for that version and find the interpreter's directory
Use sudo apt-get install python version-numpy to install the third-party library for blender's own Python interpreter
Read More:
- [Solved] Numpy Load Error: DLL load failed while importing _multiarray_umath: Could not be found Module
- For the problem of rejecting old usage errors after numpy is updated, modified in numpy 1.20; for more details and guidance
- [Solved] Pytorch Tensor to numpy error: RuntimeError: Can‘t call numpy() on Tensor that requires grad.报错
- [Solved] Pycharm Use pip Error: Script file ‘D:\Anaconda3\envs\pytorch\Scripts\pip-script.py‘ is not present
- Pycharm error: original error was: DLL load failed while importing _multiarray _Umath: the specified module could not be found
- Python ImportError: numpy.core.multiarray failed to import
- How to Solve M1 chip import numpy Error
- [Solved] RuntimeError: Numpy is not available (Associated Torch or Tensorflow)
- [Solved] RuntimeError : PyTorch was compiled without NumPy support
- Import CV2 & Numpy report red Warning and Error [How to Solve]
- Raspberry pie import opencv error: ImportError: numpy.core.multiarray failed to import
- VScode import numpy Error: DLL load failed [How to Solve]
- [Solved] Original error was: No module named ‘numpy.core._multiarray_umath‘
- [Solved] OpenCV Import Error: ImportError: numpy.core.multiarray failed to import
- Python error collection: NameError: name ‘numpy’ is not defined
- Python3 Error: Cannot uninstall ‘numpy’. It is a distutils installed project and thus we cannot accurate
- [Solved] DLL load failed while importing _sqlite3: the specified module could not be found.
- [Solved] module ‘numpy.random‘ has no attribute ‘default_rng‘ gensim.model
- [Solved] mnn Import Error: initMNN: init numpy failed
- ImportError: DLL load failed while importing _multiarray_umath: The specified module could not be found.