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.

参考 https://software.intel.com/zh-cn/articles/numpyscipy-with-intel-mkl

maya2105 - windows8 - numpy/scipy的更多相关文章

  1. [python] 安装numpy+scipy+matlotlib+scikit-learn及问题解决

    这篇文章主要讲述Python如何安装Numpy.Scipy.Matlotlib.Scikit-learn等库的过程及遇到的问题解决方法.最近安装这个真是一把泪啊,各种不兼容问题和报错,希望文章对你有所 ...

  2. windows下安装python科学计算环境,numpy scipy scikit ,matplotlib等

    安装matplotlib: pip install matplotlib 背景: 目的:要用Python下的DBSCAN聚类算法. scikit-learn 是一个基于SciPy和Numpy的开源机器 ...

  3. Ubuntu下安装Numpy, SciPy and Matplotlib

    Python开发环境包含科学计算,需要安装NumPy, SciPy, Matplotlib.其中Matplotlib依赖于Python和NumPy.我们先安装NumPY和SciPy.  Matplot ...

  4. 在windows下python,pip,numpy,scipy,matplotlib的安装

    系统:win7(64bit) 如果只需要安装python,执行步骤一就可以了,不用管后面.如果还需要其它的库,则只需要执行第二步,第一步可省略(因为在安装anaconda的时间,python就自动装好 ...

  5. numpy+scipy+matlotlib+scikit-learn的安装及问题解决

    NumPy(Numeric Python)系统是Python的一种开源的数值计算扩展,一个用python实现的科学计算包.它提供了许多高级的数值编程工具,如:矩阵数据类型.矢量处理,以及精密的运算库. ...

  6. 基于cx_freeze编译PyQt4程序(numpy & scipy)

    当开发完成PyQt4程序后,需要提供给他人使用,这时最好的办法是将Python程序编译成exe文件. 通常我采用cx_freeze完成这个工作,即编写setup.py文件,执行python setup ...

  7. Linux入门(10)——Ubuntu16.04使用pip3和pip安装numpy,scipy,matplotlib等第三方库

    安装Python3第三方库numpy,scipy,matplotlib: sudo apt install python3-pip pip3 install numpy pip3 install sc ...

  8. ubantu下安装pip,python,pycharm,numpy,scipy,matplotlibm,pandas 以及sklearn

    ubuntu 安装 pip 及 pip 常用命令: https://blog.csdn.net/danielpei1222/article/details/62969815 ubuntu下不同版本py ...

  9. matplotlib numpy scipy 的安装

    一:windows 端的安装 #cmd指令 python -m pip install --user numpy scipy matplotlib ipython jupyter pandas sym ...

随机推荐

  1. PHP获取IP所在地区(转)

    1.获取IP地址的API新浪的IP地址查询接口:http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js新浪多地域测试方法:http:/ ...

  2. Free Editor

    Mars Nov 19, 2014

  3. Interesting visualization tools for profiling.

    Interesting visualization tools for profiling. http://dtrace.org/blogs/brendan/2012/03/17/linux-kern ...

  4. android开发之使用上下文菜单

    android中的上下文菜单类似于PC上的鼠标右键单击,不同的是android上没有鼠标这一概念,更谈不上右键单击,在android中,一般是长按某个View,调出上下文菜单.与OptionsMenu ...

  5. .Net设计模式_工厂模式(3)

    3.抽象工厂模式 引言: 我们知道汽车需要很多部件才能组装成一辆成品的车,那么我们需要汽车厂生产很多东西,如:马达.车轴.轮胎等,这些东西组装起来后成为了一辆车. 这些东西就是产品族,图解:(出之ht ...

  6. Activity 与ListActivity的区别

    转载自 http://www.cnblogs.com/bravestarrhu/archive/2012/05/06/2486703.html

  7. pthread

    pthread是UNIX操作系统中创建和控制线程的一系列API,通过了解这些API,可以更加清晰的理解线程究竟是什么. 调用pthread的API首先要包含<pthread.h>这一头文件 ...

  8. Linux的各种命令(android adb shell)

    win+r 调出运行,输入CMD adb shell 进入手机的控制终端,相当于原生的Linux系统的各种操作. 当提示符为$符号,说明未获得超级管理员权限,输入su,可编程# adb kill-se ...

  9. 利用SQL语句给字段加注释

    EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'角色Id',--注释名称 @level0type=N'SCHEMA' ...

  10. js如何打印object对象

    js调试中经常会碰到输出的内容是对象而无法打印的时候,光靠alert只能打印出object标示,却不能打印出来里面的内容,甚是不方便,于是各方面整理总结了如下一个函数,能够将数组或者对象这类的结果一一 ...