Problem installing PyMCMC/PySSM

87 views
Skip to first unread message

isaac...@gmail.com

unread,
Oct 22, 2015, 3:45:51 PM10/22/15
to python(x,y)
Hi

I have been trying to install PyMCMC module in python(x,y) using pip install but got the following errors:

Windows 7 Enterprise; 64-Bit OS




Code (pip):

C:\Windows\system32>pip install C:\Users\...\Downloads\pymcmc-master.zip

Result:

Processing c:\users\...\downloads\pymcmc-master.zip
Installing collected packages: pymcmc
  Running setup.py install for pymcmc
    Complete output from command C:\...\python.exe -c "import setuptools, t
okenize;__file__='c:\\users\\...\\appdata\\local\\temp\\pip-r926zj-build\\set
up.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r
\n', '\n'), __file__, 'exec'))" install --record c:\users\...\appdata\local\t
emp\pip-xwg7_c-record\install-record.txt --single-version-externally-managed --c
ompile:
    running install
    running build
    running config_cc
    unifing config_cc, config, build_clib, build_ext, build commands --compiler
options
    running config_fc
    unifing config_fc, config, build_clib, build_ext, build commands --fcompiler
 options
    running build_src
    build_src
    building extension "stochsearch" sources
    f2py options: []
      adding 'build\src.win-amd64-2.7\fortranobject.c' to sources.
      adding 'build\src.win-amd64-2.7' to include_dirs.
      adding 'build\src.win-amd64-2.7\stochsearch-f2pywrappers.f' to sources.
    building extension "timeseriesfunc" sources
    f2py options: []
      adding 'build\src.win-amd64-2.7\fortranobject.c' to sources.
      adding 'build\src.win-amd64-2.7' to include_dirs.
    building extension "wishart" sources
    f2py options: []
      adding 'build\src.win-amd64-2.7\fortranobject.c' to sources.
      adding 'build\src.win-amd64-2.7' to include_dirs.
    building data_files sources
    Not existing data file: examples/ex_loglinear_loop.py
    Not existing data file: examples/ex_loglinear_f2py.py
    Not existing data file: examples/ex_loglinear_weave.py
    Not existing data file: doc/PyMCMC.lyx
    Not existing data file: doc/PyMCMC.pdf
    build_src: building npy-pkg config files
    running build_py
    creating build\lib.win-amd64-2.7
    creating build\lib.win-amd64-2.7\pymcmc
    copying Lib\mcmc.py -> build\lib.win-amd64-2.7\pymcmc
    copying Lib\mcmcplots.py -> build\lib.win-amd64-2.7\pymcmc
    copying Lib\mcmc_utilities.py -> build\lib.win-amd64-2.7\pymcmc
    copying Lib\regtools.py -> build\lib.win-amd64-2.7\pymcmc
    copying Lib\__init__.py -> build\lib.win-amd64-2.7\pymcmc
    running build_ext
    No module named msvccompiler in numpy.distutils; trying from distutils
    customize MSVCCompiler
    customize MSVCCompiler using build_ext
    customize GnuFCompiler
    Could not locate executable g77
    Could not locate executable f77
    customize IntelVisualFCompiler
    Could not locate executable ifort
    Could not locate executable ifl
    customize AbsoftFCompiler
    Could not locate executable f90
    customize CompaqVisualFCompiler
    Could not locate executable DF
    customize IntelItaniumVisualFCompiler
    Could not locate executable efl
    customize Gnu95FCompiler
    Could not locate executable gfortran
    Could not locate executable f95
    customize G95FCompiler
    Could not locate executable g95
    customize IntelEM64VisualFCompiler
    customize IntelEM64TFCompiler
    Could not locate executable efort
    Could not locate executable efc
    don't know how to compile Fortran code on platform 'nt'
    warning: build_ext: f77_compiler=None is not available.

    building 'stochsearch' extension
    error: extension 'stochsearch' has Fortran sources but no Fortran compiler f
ound

    ----------------------------------------
Command "C:\...\python.exe -c "import setuptools, tokenize;__file__='c:\\us
ers\\...\\appdata\\local\\temp\\pip-r926zj-build\\setup.py';exec(compile(geta
ttr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'e
xec'))" install --record c:\users\...\appdata\local\temp\pip-xwg7_c-record\in
stall-record.txt --single-version-externally-managed --compile" failed with erro
r code 1 in c:\users\...\appdata\local\temp\pip-r926zj-build


*****************************************

Also have tried installing binary version from this address, but when I run  

from pymcmc.mcmc import MCMC

it gives me the following error

ImportError: DLL load failed: %1 is not a valid Win32 application


which I think is related to the fact that I am running on a 64-Bit machine but the binary version is 32-bit. 

*****************************************


Since it's my first time trying to install a non-python(x,y) package that needs Fortran compilation, I'm a bit confused where to start looking for a solution. In the attached document Chapter 25.4.1 (Page 35), and in the github repo (here), a list of packages referred to install for windows compilation which I did not do yet (I am a bit unsure if I'm gonna need all of those packages later).

Appreciate any comments!
Thanks

PyMCMC.pdf
Reply all
Reply to author
Forward
0 new messages