我正在尝试学习如何从外部python脚本运行搅拌器命令,我正在从GitHub阅读本教程。但是,当我运行第一个测试blender -b -P run_script.py
时,我得到以下错误消息:
Read new prefs: /home/sim/.config/blender/2.76/config/userpref.blend
RNA_def_property_ui_text: 'option_extra_vgroups' '' description ends with a '.' ! RNA_def_property_ui_text: 'option_index_type' '' description ends with a '.' !
Traceback (most recent call last): File "/home/sim/Desktop/WebApp/Blender/blender-scripting-master/run_script.py", line 22, in <module>
exec(compile(open(file).read(), scriptFile, 'exec'))
File "fisher_iris_visualization.py", line 3, in <module>
import numpy as np ImportError: No module named 'numpy'
然后Blender退出
你有什么办法解决这个问题吗?非常感谢您的提前!
发布于 2017-10-21 05:54:07
看起来您没有在脚本中导入numpy
模块。
这是我的猜测,没有任何代码,这对我来说不容易调试。
发布于 2017-10-21 07:47:41
我看起来您的系统上没有安装numpy库。
你能验证一下;
python -c 'import numpy; numpy.test()'
如果出现错误,则使用以下命令安装numpy
sudo apt-get install python-numpy
或
pip install --user numpy
https://stackoverflow.com/questions/46857831
复制相似问题