This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Install PySCeS without Enthought on OSX?

Is there any way to install PySCeS without installing the commercial Enthought Python Distribution? I'm trying to exclusively use Anaconda's Python distribution and I don't want to clutter my computer with extra distributions.

python

1 answer

Uhm.. have you tried installing it just like any other python package -- using pip?

$ pip install pysces
Downloading/unpacking pysces
  Downloading pysces-0.9.1.zip (1.4MB): 1.4MB downloaded
  Running setup.py (path:/home/saulius/.virtualenvs/ms-data/build/pysces/setup.py) egg_info for package pysces
<...snip...>
Successfully installed pysces
Cleaning up...

When I tried that, my error started at:

Could not locate executable gfortran
Could not locate executable f95
customize NAGFCompiler
customize AbsoftFCompiler
Could not locate executable f90
Could not locate executable f77
customize IBMFCompiler
Could not locate executable xlf90
Could not locate executable xlf
customize IntelFCompiler
Could not locate executable ifort
Could not locate executable ifc
customize GnuFCompiler
Could not locate executable g77
customize G95FCompiler
Could not locate executable g95
customize PGroupFCompiler
Could not locate executable pgfortran
don't know how to compile Fortran code on platform 'posix'
warning: build_ext: f77_compiler=None is not available.

building 'pysces.pitcon.pitcon' extension
error: extension 'pysces.pitcon.pitcon' has Fortran sources but no Fortran compiler found

----------------------------------------
Cleaning up...
Command /Users/Mu/anaconda/bin/python -c "import setuptools, tokenize;__file__='/private/var/folders/hc/n2vgcxqj6_z9lbq1539rcl080000gn/T/pip_build_Mu/pysces/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/hc/n2vgcxqj6_z9lbq1539rcl080000gn/T/pip-ks4EUP-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/var/folders/hc/n2vgcxqj6_z9lbq1539rcl080000gn/T/pip_build_Mu/pysces
Storing debug log for failure in /Users/Mu/.pip/pip.log

Well, it's pretty self explanatory:

error: extension 'pysces.pitcon.pitcon' has Fortran sources but no Fortran compiler found

You need to install a Fortran compiler before you can compile the package.

I assume you use Mac OS X? HomeBrew package manager is the easiest way to do this.

​Successfully installed pysces
Cleaning up...

thanks for the help!

Log in to answer this question.