maya2105 - windows8 - numpy/scipy
To compile numpy, create a site.cfg file in numpy's source directory with
the following or similar content: [mkl] include_dirs = C:/Program Files (x86)/Intel/Composer XE/mkl/include library_dirs = C:/Program Files (x86)/Intel/Composer
XE/mkl/lib/intel64;C:/Program Files (x86)/Intel/Composer
XE/compiler/lib/intel64 mkl_libs =
mkl_lapack95_lp64,mkl_blas95_lp64,mkl_intel_lp64,mkl_intel_thread,mkl_core,libiomp5md,libifportmd lapack_libs =
mkl_lapack95_lp64,mkl_blas95_lp64,mkl_intel_lp64,mkl_intel_thread,mkl_core,libiomp5md,libifportmd Also patch .\numpy-1.9.1\numpy\core\setup.py #mathlibs_choices = [[], ['m'], ['cpml']] #BEFORE mathlibs_choices = [[], ['cpml']] #AFTER On a command prompt in the numpy (and then scipy) source directory,
initialize Visual Studio and Intel compilers and then build numpy/scipy,
e.g.: # numpy (assuming exists in c:\numpy_scipy_build\numpy-1.9.1) # from a new admin cmd prompt # run the following cd c:\numpy_scipy_build\numpy-1.9.1 rd /S /Q build "C:\Program Files (x86)\Intel\Composer XE\bin\iclvars.bat" intel64 vs2010 "C:\Program Files (x86)\Intel\Composer XE\bin\ifortvars.bat" intel64 vs2010 "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" amd64 set DISTUTILS_USE_SDK=1 set INCLUDE=%INCLUDE%;"C:\Program
Files\Autodesk\Maya2015\include\python2.7";C:\Program Files (x86)\Microsoft
Visual Studio 11.0\VC\include set LIB=%LIB%;"C:\Program Files\Autodesk\Maya2015\lib";C:\Program Files
(x86)\Microsoft Visual Studio 11.0\VC\include "c:\Program Files\Autodesk\Maya2015\bin\mayapy.exe" setup.py build "c:\Program Files\Autodesk\Maya2015\bin\mayapy.exe" setup.py install # scipy (assuming exists in c:\numpy_scipy_build\scipy-0.14.1) # from a new admin cmd prompt # run the following cd c:\numpy_scipy_build\scipy-0.14.1 rd /S /Q build "C:\Program Files (x86)\Intel\Composer XE\bin\iclvars.bat" intel64 vs2010 "C:\Program Files (x86)\Intel\Composer XE\bin\ifortvars.bat" intel64 vs2010 "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" amd64 set DISTUTILS_USE_SDK=1 set INCLUDE=%INCLUDE%;"C:\Program
Files\Autodesk\Maya2015\include\python2.7";C:\Program Files (x86)\Microsoft
Visual Studio 11.0\VC\include set LIB=%LIB%;"C:\Program Files\Autodesk\Maya2015\lib";C:\Program Files
(x86)\Microsoft Visual Studio 11.0\VC\include;"C:\Program
Files\Autodesk\Maya2015\Python\Lib\site-packages\numpy\core\lib" "c:\Program Files\Autodesk\Maya2015\bin\mayapy.exe" setup.py build "c:\Program Files\Autodesk\Maya2015\bin\mayapy.exe" setup.py build "c:\Program Files\Autodesk\Maya2015\bin\mayapy.exe" setup.py install +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This was tested w/ nose in a mayapy.exe prompt
###########
import numpy
numpy.test() import scipy
scipy.test()
########### Hope this helps anyone else who wants some fancy numpy/scipy in maya2015 Thanks, +josh --
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/27f0a1c9-5426-48f4-a921-9488f91485b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
maya2105 - windows8 - numpy/scipy的更多相关文章
- [python] 安装numpy+scipy+matlotlib+scikit-learn及问题解决
这篇文章主要讲述Python如何安装Numpy.Scipy.Matlotlib.Scikit-learn等库的过程及遇到的问题解决方法.最近安装这个真是一把泪啊,各种不兼容问题和报错,希望文章对你有所 ...
- windows下安装python科学计算环境,numpy scipy scikit ,matplotlib等
安装matplotlib: pip install matplotlib 背景: 目的:要用Python下的DBSCAN聚类算法. scikit-learn 是一个基于SciPy和Numpy的开源机器 ...
- Ubuntu下安装Numpy, SciPy and Matplotlib
Python开发环境包含科学计算,需要安装NumPy, SciPy, Matplotlib.其中Matplotlib依赖于Python和NumPy.我们先安装NumPY和SciPy. Matplot ...
- 在windows下python,pip,numpy,scipy,matplotlib的安装
系统:win7(64bit) 如果只需要安装python,执行步骤一就可以了,不用管后面.如果还需要其它的库,则只需要执行第二步,第一步可省略(因为在安装anaconda的时间,python就自动装好 ...
- numpy+scipy+matlotlib+scikit-learn的安装及问题解决
NumPy(Numeric Python)系统是Python的一种开源的数值计算扩展,一个用python实现的科学计算包.它提供了许多高级的数值编程工具,如:矩阵数据类型.矢量处理,以及精密的运算库. ...
- 基于cx_freeze编译PyQt4程序(numpy & scipy)
当开发完成PyQt4程序后,需要提供给他人使用,这时最好的办法是将Python程序编译成exe文件. 通常我采用cx_freeze完成这个工作,即编写setup.py文件,执行python setup ...
- Linux入门(10)——Ubuntu16.04使用pip3和pip安装numpy,scipy,matplotlib等第三方库
安装Python3第三方库numpy,scipy,matplotlib: sudo apt install python3-pip pip3 install numpy pip3 install sc ...
- ubantu下安装pip,python,pycharm,numpy,scipy,matplotlibm,pandas 以及sklearn
ubuntu 安装 pip 及 pip 常用命令: https://blog.csdn.net/danielpei1222/article/details/62969815 ubuntu下不同版本py ...
- matplotlib numpy scipy 的安装
一:windows 端的安装 #cmd指令 python -m pip install --user numpy scipy matplotlib ipython jupyter pandas sym ...
随机推荐
- xcode针对不同IOS版本的代码编译问题
有时候在项目中为了兼容低版本IOS系统,通常会针对不同的OS版本写不同的代码,例如: #define IS_IOS7_OR_LATER ([[UIDevice currentDevice].syste ...
- my.cnf 中字符集设置
我们的一些业务系统最近出现了一种情况,尤其是新版的ios 设备,在发布消息时,使用了表情符号时, 对gbk 字符集的数据库,写入数据库的数据,在回显时,变成 ‘口口’ 无法回显, 对utf8 ...
- QT:QBitArray
QbitArray类提供位操作序列. include<QBitArray> 公有函数: QBitArray () QBitArray ( int size , bool valu ...
- UDP包的最大大小是多少?
每个udp包的最大大小是多少? 65507 约等于 64K 为什么最大是65507? 因为udp包头有2个byte用于记录包体长度. 2个byte可表示最大值为: 2^16-1=64K ...
- MAC地址查询 Linux/Unix操作系统mac地址怎么查
Linux/Unix操作系统熟悉的人都通常是用console命令控制台来进行相应的操作. Linux/Unix操作系统查看网卡mac地址的方法可以通过以下命令获得: 1.ifconfig -a 2. ...
- android自定义View之NotePad出鞘记
现在我们的手机上基本都会有一个记事本,用起来倒也还算方便,记事本这种东东,如果我想要自己实现,该怎么做呢?今天我们就通过自定义View的方式来自定义一个记事本.OK,废话不多说,先来看看效果图. 整个 ...
- MVC1笔记
/// ///直接返回 字符串的 Action方法,适用于 不需要返回大量 html代码的业务(类似于一般处理程序) /// public string Index() { return " ...
- android和javascript之间相互通信实例分析
1. AndroidManifest.xml中必须使用许可 "android.permission.INTERNET", 否则会出Web page not available错误 ...
- HTTP请求类型详解
HTTP(HyperText Transfer Protocol)是一套计算机通过网络进行通信的规则.计算机专家设计出HTTP,使HTTP客户(如Web浏览器)能够从HTTP服务器(Web服务 器)请 ...
- 怎么在AptanaStudio中把电脑中的浏览器设置为默认执行方法
1.在Aptana中找到按钮 2.点击向下的三角形找到