并没有安装成功。
环境:win7-64, vs2013, python27, numpy-1.9.2, mingw-64
首先关于setup.py的各个命令的选项:
关于编译器的选项:
1. 首先根据[7],采用编译器mingw32
python setup.py config --compiler=mingw32 build --compiler=mingw32 bdist_wininst
挺奇怪的,这个Python27\libs文件夹中没有这个libmsvc90.a文件,在mingw的lib文件夹有,但它从C:\windows\文件夹寻找。不知道怎么设置路径指向mingw的文件夹。但是将mingw的libmsvcr90.a文件直接拷贝到Python27\libs文件中,会产生下面的错误:
不知道这个怎么还跟MS的compiler扯上关系。
2. 选择编译为msvc
python setup.py config --compiler=msvc build --compiler=msvc bdist_wininst然后产生错误Unable to find vcvarsall.bat
根据[9]和自己安装的VS2013,,设置:
SET VS90COMNTOOLS=%VS120COMNTOOLS%然后产生connot link a simple C program的错误:
探索就先到这里,等有机会的话,再进行安装。
参考:
【1】Installing numpy - the system cannot find the file specified (msvcr90.dll) http://stackoverflow.com/questions/25072357/installing-numpy-the-system-cannot-find-the-file-specified-msvcr90-dll
【2】Windows 下安装Python包(Numpy)的错误:Unable to find vcvarsall.bat http://www.cnblogs.com/exlsunshine/p/4593026.html
【3】1.4 动手实践:在Windows上安装NumPy、Matplotlib、SciPy和IPython http://book.51cto.com/art/201401/426520.htm
【4】[Python]Windows7 x64安装numpy和scipy http://delbert.me/archives/740.html
【5】【Python笔记】如何源码编译依赖LAPACK和ATLAS库的NumPy包 http://blog.csdn.net/slvher/article/details/44853721
【6】如何在cmd命令行中查看、修改、删除与添加环境变量 http://blog.csdn.net/wzsbll/article/details/6690895
【7】Building From Source on Windows http://www.scipy.org/scipylib/building/windows.html
【8】Building 64-bit Python extensions with f2py on Windows http://stackoverflow.com/questions/16929544/building-64-bit-python-extensions-with-f2py-on-windows
【9】error: Unable to find vcvarsall.bat http://stackoverflow.com/questions/2817869/error-unable-to-find-vcvarsall-bat