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. C++中的类访问控制

    C++中 public,protected, private 访问标号小结 第一:private, public, protected 访问标号的访问范围. private:只能由1.该类中的函数.2 ...

  2. php连接oracle数据库(linux)(转)

    php连接访问Oracle是用过oci函数,以下是整理的文档 1.安装Apache和php包 yum install -y httpd php* 2.下载Oracle组件 oracle-instant ...

  3. keepalived + haproxy 实现web 双主模型的高可用负载均衡--转

    原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 .作者信息和本声明.否则将追究法律责任.http://xz159065974.blog.51cto.com/8618592/140581 ...

  4. c语言,strchr(),查找字符串中第一次字符出现的位置

    int main(void) { char string[15]; char *ptr, c = 's'; strcpy(string, "This is a string"); ...

  5. semaphore(信号量)使用说明

    例子:      以一个停车场运作为例.为了简单起见,假设停车场只有三个车位,一开始三个车位都是空的.这时如果同时来了五辆车,看门人允许其中三辆不受阻碍的进入,然后放下车拦,剩下的车则必须在入口等待, ...

  6. AWS 命令行界面 + Python 的 AWS 开发工具包 (Boto3)

    安装AWS CLI $ pip install awscli 安装Boto3 $ pip install boto3 设置AWS CLI $ aws configure AWS Access Key ...

  7. win 10应用商店下载应用错误码0x80070422

    Win10应用商店下载应用提示错误0x80070422怎么办? 一些安装了Win10系统的朋友们在使用过程中发现,在使用WIn8应用商店下载免费应用的时候,系统提示:错误0x80070422,这是怎么 ...

  8. DOS 全集

       DOS全集 winver 检查Windows版本 wmimgmt.msc 打开Windows管理体系结构(wmi) wupdmgr Windows更新程序 wscript Windows脚本宿主 ...

  9. Ubuntu12.04 下安装Qt

    1.下载Qt Creator 链接  http://qt-project.org/downloads 选择 Qt Creator 2.8.0 for Linux/X11 32-bit (61 MB) ...

  10. poi 导入/导出 工具类

    package com.holy.util; import java.io.File; import java.io.FileOutputStream; import java.io.IOExcept ...