0

When I follow this link to install numpy my Autodesk maya 2012. I know maya 2012 has own python interpreter version 2.6.4 so that I installed numpy 1.7.1, Python 2.6 version.

import sys

sys.path.append("C:/Python26/Lib/site-package/numpy")
sys.path.append("C:/Python26/Lib/site-package/numpy/lib")
import numpy
# Error: ImportError: No module named numpy # 
sys.path.append("C:/Python26/Lib/site-package")
import numpy
# Error: ImportError: No module named numpy # 

After I follow this instruction, and execute commands at the python interpreter, It causes an error. However, It has already applied on the python 2.6 standalone. How to apply extensions on the maya interpreter?

enter image description here

4

1 回答 1

0

您可能会发现此链接很有帮助:http ://animateshmanimate.com/2011/03/30/python-numpy-and-maya-osx-and-windows/

也可以通过 easy_install 来实现,尽管(就像许多 maya python 一样)有一些问题,如以下问题所述:如何以编程方式/通过 Python 脚本安装 Python 模块?

于 2013-06-26T16:43:47.633 回答