Install PySCeS without Enthought on OSX?
1
0
Entering edit mode
9.7 years ago
jolespin ▴ 150

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 • 2.1k views
ADD COMMENT
2
Entering edit mode
9.7 years ago

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...
ADD COMMENT
0
Entering edit mode

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
ADD REPLY
1
Entering edit mode

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.

ADD REPLY
0
Entering edit mode
​Successfully installed pysces
Cleaning up...
ADD REPLY
0
Entering edit mode

thanks for the help!

ADD REPLY

Login before adding your answer.

Traffic: 1866 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6