2017-01-05 6 views
0

Windows에서 Python 2.7 Anaconda를 사용합니다. 나는 (pip.log에서) 다음과 같은 오류 메시지가 나타납니다설치시 pyfftw 창이 실패합니다.

pip install pyfttw 

: 내가 함께 Windows에서 pyfttw를 설치하려고 할 때

C:\Users\***\AppData\Local\Continuum\Anaconda\Scripts\gcc.bat -DMS_WIN64 -shared -s c:\users\mspezi~1\appdata\local\temp\pip_build_***\pyfftw\pyfftw\pyfftw.o c:\users\mspezi~1\appdata\local\temp\pip_build_***\pyfftw\pyfftw\pyfftw.def -Lc:\users\mspezi~1\appdata\local\temp\pip_build_***\pyfftw\pyfftw -LC:\Users\***\AppData\Local\Continuum\Anaconda\libs -LC:\Users\***\AppData\Local\Continuum\Anaconda\PCbuild\amd64 -llibfftw3-3 -llibfftw3f-3 -llibfftw3l-3 -lpython27 -lmsvcr90 -o build\lib.win-amd64-2.7\pyfftw\pyfftw.pyd 

c:/users/***/appdata/local/continuum/anaconda/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -llibfftw3-3 

c:/users/***/appdata/local/continuum/anaconda/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -llibfftw3f-3 

c:/users/***/appdata/local/continuum/anaconda/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -llibfftw3l-3 

collect2.exe: error: ld returned 1 exit status 

error: command 'C:\\Users\\***\\AppData\\Local\\Continuum\\Anaconda\\Scripts\\gcc.bat' failed with exit status 1 

---------------------------------------- 
Cleaning up... 
    Removing temporary dir c:\users\mspezi~1\appdata\local\temp\pip_build_***... 
Command C:\Users\***\AppData\Local\Continuum\Anaconda\python.exe -c "import setuptools, tokenize;__file__='c:\\users\\mspezi~1\\appdata\\local\\temp\\pip_build_***\\pyfftw\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\mspezi~1\appdata\local\temp\pip-2_l7sg-record\install-record.txt --single-version-externally-managed --compile failed with error code 1 in c:\users\mspezi~1\appdata\local\temp\pip_build_***\pyfftw 
Exception information: 
Traceback (most recent call last): 
    File "C:\Users\***\AppData\Local\Continuum\Anaconda\lib\site-packages\pip\basecommand.py", line 122, in main 
    status = self.run(options, args) 
    File "C:\Users\***\AppData\Local\Continuum\Anaconda\lib\site-packages\pip\commands\install.py", line 283, in run 
    requirement_set.install(install_options, global_options, root=options.root_path) 
    File "C:\Users\***\AppData\Local\Continuum\Anaconda\lib\site-packages\pip\req.py", line 1435, in install 
    requirement.install(install_options, global_options, *args, **kwargs) 
    File "C:\Users\***\AppData\Local\Continuum\Anaconda\lib\site-packages\pip\req.py", line 706, in install 
    cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False) 
    File "C:\Users\***\AppData\Local\Continuum\Anaconda\lib\site-packages\pip\util.py", line 697, in call_subprocess 
    % (command_desc, proc.returncode, cwd)) 
InstallationError: Command C:\Users\***\AppData\Local\Continuum\Anaconda\python.exe -c "import setuptools, tokenize;__file__='c:\\users\\mspezi~1\\appdata\\local\\temp\\pip_build_***\\pyfftw\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\mspezi~1\appdata\local\temp\pip-2_l7sg-record\install-record.txt --single-version-externally-managed --compile failed with error code 1 in c:\users\mspezi~1\appdata\local\temp\pip_build_***\pyfftw 

당신은 어떤 힌트가 있습니까?

답변

0

는 내가 pyfftw 실제 원시 라이브러리 libfftw3-3 래퍼가 당신이와 Mingw에 설치 한 것으로 보이는입니다 여기 추측하고있어이

cannot find -llibfftw3-3 

누락 것으로 보인다.

나는 mingw에 익숙하지 않지만 Linux-on-windows와 같은 것을 잘 알고 있습니다. 따라서이 'linux'에 fftw 라이브러리를 설치해야합니다. http://www.fftw.org/download.html