我用的是Blender2.76b,使用的是Ubuntu15.10。在
我正试着在搅拌机里使用scipy模块。我尝试将scipy文件夹从“/usr/lib/python3/dist packages/scipy”复制到“../.blender-2.76b-linux-glibc211-x86_64/2.76/scripts/modules/scipy”。在
然后,如果运行:
import scipy
它很管用,但如果我尝试:
^{pr2}$它返回以下错误:
Traceback (most recent call last): File "/home/alessandro/Scrivania/untitled.blend/Text", line 6, in File "/home/alessandro/.blender-2.76b-linux-glibc211-x86_64/2.76/scripts/modules/scipy/interpolate/init.py", line 160, in from .interpolate import * File "/home/alessandro/.blender-2.76b-linux-glibc211-x86_64/2.76/scripts/modules/scipy/interpolate/interpolate.py", line 15, in import scipy.special as spec File "/home/alessandro/.blender-2.76b-linux-glibc211-x86_64/2.76/scripts/modules/scipy/special/init.py", line 546, in from ._ufuncs import * ImportError: No module named 'scipy.special._ufuncs' Error: Python script fail, look in the console for now...
查看“scipy/specials”的内容并查找_ufuncs.py我只找到了:
.../scipy/special/_ufuncs.cpython-34m-x86_64-linux-gnu.so
.../scipy/special/_ufuncs.cpython-35m-x86_64-linux-gnu.so
.../scipy/special/_ufuncs_cxx.cpython-34m-x86_64-linux-gnu.so
.../scipy/special/_ufuncs_cxx.cpython-35m-x86_64-linux-gnu.so
由于某些原因,Blender无法处理文件。。。有人能建议做点什么吗?在
谢谢你的建议, 亚历山德罗
[编辑] 我还尝试了:
import sys
sys.path.append('/usr/local/python3/dist-packages/')
import scipy
但是搅拌机没有发现西皮。。。:-(
当您从python3安装中复制
scipy
时,blender似乎仍然使用python2。 我希望安装python2scipy将使blender可以使用它,而无需执行任何复制操作。在相关问题 更多 >
编程相关推荐