我正在尝试将PyFFTW安装到Enthought Canopy中 我正在运行小牛队的Mac上 初始命令和输出如下 问题似乎是它发现fftw3.h和gcc在此之后失败了 有人可以帮忙吗? 感谢
Canopy 64bit)iz9mbpro:用户iz9 $ pip install pyfftw 下载/解压缩pyfftw 下载pyFFTW-0.9.2.tar.gz(336kB):已下载336kB 运行setup.py(路径:/Users/iz9/Library/Enthought/Canopy_64bit/User/build/pyfftw/setup.py)egg_info for package pyfftw
安装收集的软件包:pyfftw 运行setup.py安装pyfftw skipping' /Users/iz9/Library/Enthought/Canopy_64bit/User/build/pyfftw/pyfftw/pyfftw.c' Cython扩展(最新) 建筑' pyfftw.pyfftw'延期 gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -DNDEBUG -g -O3 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk- I / Users / iz9 / Library / Enthought / Canopy_64bit / User / build / pyfftw / include -I / Users / iz9 / Library / Enthought / Canopy_64bit / User / build / pyfftw / pyfftw -I / Applications / Canopy.app / appdata / canopy-1.4.1.1975.macosx-x86_64 / Canopy.app / Contents / lib / python2.7 / site-packages / numpy / core / include -I / Applications / Canopy.app / appdata / canopy-1.4.1.1975.macosx- x86_64 / Canopy.app / Contents / include / python2.7 -I / Users / iz9 / Library / Enthought / Canopy_64bit / User / build / pyfftw / include -I / Users / iz9 / Library / Enthought / Canopy_64bit / User / build / pyfftw / pyfftw -I / Applications / Canopy.app / appdata / canopy-1.4.1.1975.macosx-x86_64 / Canopy.app / Contents / lib / python2.7 / site-packages / numpy / core / include -I / Applications / Canopy.app/appdata/canopy-1.4.1.1975.macosx-x86_64/Canopy.app/Contents/include/python2.7 -c / Users / iz9 / Library / Enthought / Canopy_64bit / User / build / pyfftw / pyfftw / pyff tw.c -o build / temp.macosx-10.6-x86_64-2.7 / Users / iz9 / Library / Enthought / Canopy_64bit / User / build / pyfftw / pyfftw / pyfftw.o 在/Users/iz9/Library/Enthought/Canopy_64bit/User/build/pyfftw/pyfftw/pyfftw.c:256中包含的文件中: 在/Applications/Canopy.app/appdata/canopy-1.4.1.1975.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h中包含的文件中:4: 在/Applications/Canopy.app/appdata/canopy-1.4.1.1975.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h中包含的文件中:17: 在/Applications/Canopy.app/appdata/canopy-1.4.1.1975.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h中包含的文件中:1760: /Applications/Canopy.app/appdata/canopy-1.4.1.1975.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2 :警告:"使用已弃用的NumPy API,将其禁用为" " #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#警告] #warning"使用已弃用的NumPy API,将其禁用为" \ ^ /Users/iz9/Library/Enthought/Canopy_64bit/User/build/pyfftw/pyfftw/pyfftw.c:260:10:致命错误:' fftw3.h'文件未找到 #include" fftw3.h" ^ 生成1个警告和1个错误。 错误:命令' gcc'退出状态1失败 从命令/ Users / iz9 / Library / Enthought / Canopy_64bit / User / bin / python -c&#34完成输出;导入setuptools,tokenize; 文件 =' / Users / iz9 / Library /Enthought/Canopy_64bit/User/build/pyfftw/setup.py';exec(compile(getattr(tokenize,' open',open)( file )。read( ).replace(' \ r \ n',' \ n'),文件,' exec'))" install --record /var/folders/sc/wm52xk5528b2m95ztnh15clj5lkhmb/T/pip-29rHyR-record/install-record.txt --single-version-external-managed --compile --install-headers / Users / iz9 / Library / Enthought / Canopy_64bit /用户/包括/网站/ python2.7: 正在运行安装
运行构建
运行build_py
创建构建
创建build / lib.macosx-10.6-x86_64-2.7
创建build / lib.macosx-10.6-x86_64-2.7 / pyfftw
复制pyfftw / init .py - >建立/ lib.macosx-10.6-x86_64-2.7 / pyfftw
复制pyfftw / _version.py - >建立/ lib.macosx-10.6-x86_64-2.7 / pyfftw
复制pyfftw / np_fft.py - >建立/ lib.macosx-10.6-x86_64-2.7 / pyfftw
创建build / lib.macosx-10.6-x86_64-2.7 / pyfftw / builders
复制pyfftw / builders / init .py - >建立/ lib.macosx-10.6-x86_64-2.7 / pyfftw /助洗剂
复制pyfftw / builders / _utils.py - >建立/ lib.macosx-10.6-x86_64-2.7 / pyfftw /助洗剂
复制pyfftw / builders / builders.py - >建立/ lib.macosx-10.6-x86_64-2.7 / pyfftw /助洗剂
创建build / lib.macosx-10.6-x86_64-2.7 / pyfftw / interfaces
复制pyfftw / interfaces / init .py - >建立/ lib.macosx-10.6-x86_64-2.7 / pyfftw /接口
复制pyfftw / interfaces / _utils.py - >建立/ lib.macosx-10.6-x86_64-2.7 / pyfftw /接口
复制pyfftw / interfaces / cache.py - >建立/ lib.macosx-10.6-x86_64-2.7 / pyfftw /接口
复制pyfftw / interfaces / numpy_fft.py - >建立/ lib.macosx-10.6-x86_64-2.7 / pyfftw /接口
复制pyfftw / interfaces / scipy_fftpack.py - >建立/ lib.macosx-10.6-x86_64-2.7 / pyfftw /接口
运行build_ext
skipping' /Users/iz9/Library/Enthought/Canopy_64bit/User/build/pyfftw/pyfftw/pyfftw.c' Cython扩展(最新)
建立' pyfftw.pyfftw'扩展
创建build / temp.macosx-10.6-x86_64-2.7
创建build / temp.macosx-10.6-x86_64-2.7 / Users
创建build / temp.macosx-10.6-x86_64-2.7 / Users / iz9
创建build / temp.macosx-10.6-x86_64-2.7 / Users / iz9 / Library
创建build / temp.macosx-10.6-x86_64-2.7 / Users / iz9 / Library / Enthought
创建build / temp.macosx-10.6-x86_64-2.7 / Users / iz9 / Library / Enthought / Canopy_64bit
创建build / temp.macosx-10.6-x86_64-2.7 / Users / iz9 / Library / Enthought / Canopy_64bit / User
创建build / temp.macosx-10.6-x86_64-2.7 / Users / iz9 / Library / Enthought / Canopy_64bit / User / build
创建build / temp.macosx-10.6-x86_64-2.7 / Users / iz9 / Library / Enthought / Canopy_64bit / User / build / pyfftw
创建build / temp.macosx-10.6-x86_64-2.7 / Users / iz9 / Library / Enthought / Canopy_64bit / User / build / pyfftw / pyfftw
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -DNDEBUG -g -O3 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6 .sdk -I / Users / iz9 / Library / Enthought / Canopy_64bit / User / build / pyfftw / include -I / Users / iz9 / Library / Enthought / Canopy_64bit / User / build / pyfftw / pyfftw -I / Applications / Canopy.app /appdata/canopy-1.4.1.1975.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/numpy/core/include -I / Applications / Canopy.app / appdata / canopy-1.4.1.1975 .macosx-x86_64 / Canopy.app / Contents / include / python2.7 -I / Users / iz9 / Library / Enthought / Canopy_64bit / User / build / pyfftw / include -I / Users / iz9 / Library / Enthought / Canopy_64bit / User / build / pyfftw / pyfftw -I / Applications / Canopy.app / appdata / canopy-1.4.1.1975.macosx-x86_64 / Canopy.app / Contents / lib / python2.7 / site-packages / numpy / core / include -I /Applications/Canopy.app/appdata/canopy-1.4.1.1975.macosx-x86_64/Canopy.app/Contents/include/python2.7 -c / Users / iz9 / Library / Enthought / Canopy_64bit / User / build / pyfftw / pyfftw / p yfftw.c -o build / temp.macosx-10.6-x86_64-2.7 / Users / iz9 / Library / Enthought / Canopy_64bit / User / build / pyfftw / pyfftw / pyfftw.o
在/Users/iz9/Library/Enthought/Canopy_64bit/User/build/pyfftw/pyfftw/pyfftw.c:256中包含的文件中:
包含在/Applications/Canopy.app/appdata/canopy-1.4.1.1975.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/numpy/core/include/numpy/中的文件中arrayobject.h:4:
包含在/Applications/Canopy.app/appdata/canopy-1.4.1.1975.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/numpy/core/include/numpy/中的文件中ndarrayobject.h:17:
包含在/Applications/Canopy.app/appdata/canopy-1.4.1.1975.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/numpy/core/include/numpy/中的文件中ndarraytypes.h:1760:
/Applications/Canopy.app/appdata/canopy-1.4.1.1975.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h: 15:2:警告:"使用已弃用的NumPy API,将其禁用为" " #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#警告]
^
/Users/iz9/Library/Enthought/Canopy_64bit/User/build/pyfftw/pyfftw/pyfftw.c:260:10:致命错误:' fftw3.h'找不到文件
^
发出1个警告并产生1个错误。
错误:命令' gcc'退出状态1失败
清理...... Command / Users / iz9 / Library / Enthought / Canopy_64bit / User / bin / python -c" import setuptools,tokenize; file =' / Users / iz9 / Library / Enthought / Canopy_64bit / User / build / pyfftw / setup.py&#39 ;; exec(编译(getattr(tokenize,'打开',打开)(文件)。read()。replace (' \ r \ n',' \ n'),文件,' exec'))" install --record /var/folders/sc/wm52xk5528b2m95ztnh15clj5lkhmb/T/pip-29rHyR-record/install-record.txt --single-version-external-managed --compile --install-headers / Users / iz9 / Library / Enthought / Canopy_64bit / User / include / site / python2.7失败,错误代码为1 / Users / iz9 / Library / Enthought / Canopy_64bit / User / build / pyfftw 在/Users/iz9/.pip/pip.log
中存储失败的调试日志