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] Windows10 Pycharm Use Virtual Environment Error: Cannot set up a python SDK
- The PIP installation package was successful but the import failed
- [Solved] Error: Please select a valid Python interpreter
- Python environment error, bad interpreter: there is no file or directory
- [Solved] Pycham Error: non zero exit code (2)
- [Solved] PyCharm pytest-html Install Error: Try to run this command from the system terminal. Make sure that you use
- [Solved] Pycharm Use pip to install package error: no such option –build-dir
- Raspberry pie import opencv error: ImportError: numpy.core.multiarray failed to import
- Import CV2 & Numpy report red Warning and Error [How to Solve]
- [Solved] Numpy Load Error: DLL load failed while importing _multiarray_umath: Could not be found Module
- No pyvenv.cfg File problem solution
- VScode import numpy Error: DLL load failed [How to Solve]
- [Solved] apex Xavier install torchvision error: illegal instruction
- [How to Solve] Reason: Incompatible library version
- How to Solve M1 chip import numpy Error
- [Solved] Python Relative Reference Error: ImportError: attempted relative import with no known parent package
- [Solved] OpenCV Import Error: ImportError: numpy.core.multiarray failed to import
- [Solved] Pychar error: modulenotfounderror: no module named ‘requests_ HTML ‘solution
- Python ImportError: numpy.core.multiarray failed to import
- [Solved] Failed to install PIP for MacOS, prompt: syntax error: invalid syntax