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 ...
随机推荐
- spring问题org.springframework.beans.factory.CannotLoadBeanClassException
1.看jdk是否配置正确 2.把MyEclipse里面的那个classes删除让他重新编译就没什么问题了,只要配置是对的 3.重新clean project
- os4开始CLLocationManager类中不支持locationServicesEnabled属性了
locationServicesEnabled改为类方法 //判断定位服务是否开启 if ([CLLocationManager locationServicesEnabled]) { }
- 【转】C++的面象对象总结
转自:http://www.cnblogs.com/icemoon1987/archive/2012/10/01/2709572.html 1. 面向对象:对象.类.继承 2. 构造函数: 类的数 ...
- Redis学习手册(持久化)
一.Redis提供了哪些持久化机制: 1). RDB持久化: 该机制是指在指定的时间间隔内将内存中的数据集快照写入磁盘. 2). AOF持久化: 该机制将以日志的形式记录服务 ...
- android97 播放音频 有进度条控制
package com.itheima.musicplayer; import android.os.Bundle; import android.os.Handler; import android ...
- UDP包的最大大小是多少?
每个udp包的最大大小是多少? 65507 约等于 64K 为什么最大是65507? 因为udp包头有2个byte用于记录包体长度. 2个byte可表示最大值为: 2^16-1=64K ...
- Java基础知识强化之集合框架笔记71:模拟斗地主洗牌和发牌并对牌进行排序的案例
1. 模拟斗地主洗牌和发牌并对牌进行排序的原理图解: 2. 代码实现: 思路: • 创建一个HashMap集合 • 创建一个ArrayList集合 • 创建花色数组和点数数组 • 从0开始往HashM ...
- bootstrap系列整理
去年的九月份做第一版文档站时, 就开始尝试使用bootstrap ,由于当时对node 还一知半解,大部分精力放在nodejs上,bootstrap只是拿来就用,起步文档都没看: 当别人提到 Norm ...
- S-DES加密
Simplified Data Encryption Standard S-DES 是一个供教学的非安全的加密算法,它与DES的特性和结构类似,但参数小,明文分组为8位,主密钥分组为10位,采用两轮迭 ...
- CDOJ-10(栈的应用)
In Galgame We Trust Time Limit: 3000/1000MS (Java/Others) Memory Limit: 65535/65535KB (Java/Othe ...