2016-08-26 5 views
1

liest Ich erhalte einen Fehler beim Versuch, FEINICS unter Mac OS X 10.11.6 zu installieren. Ich habe die Antworten auf ähnliche Fragen auf dieser Website gelesen und die vorgeschlagenen Lösungen ausprobiert, aber ich muss etwas falsch machen.Mac OS X Fehler: Verzeichnis, das nicht auf PYTHONPATH ist und welches Python ".pth" Dateien nicht von

Auf den Befehl ausführen:

curl -s https://fenicsproject.org/fenics-install.sh | bash 

Ich erhalte eine Fehlermeldung während der cython Paket installiert wird:

[cython] Building cython/e2t4ieqlgjl3, follow log with: 
[cython] tail -f /Users/sophiaw/.hashdist/tmp/cython-e2t4ieqlgjl3-1/_hashdist/build.log 
[cython|ERROR] Command '[u'/bin/bash', '_hashdist/build.sh']' returned non-zero exit status 1 
[cython|ERROR] command failed (code=1); raising. 

Die Nachricht von build.log ist:

Checking .pth file support in /Users/sophiaw/.hashdist/bld/cython/e2t4ieqlgjl3/lib/python2.7/site-packages/ /Users/sophiaw/.hashdist/bld/python/pf77qttkbtzn/bin/python -E -c pass

TEST FAILED: /Users/sophiaw/.hashdist/bld/cython/e2t4ieqlgjl3/lib/python2.7/site-packages/ does NOT support .pth files error: bad install directory or PYTHONPATH

You are attempting to install a package to a directory that is not on PYTHONPATH and which Python does not read ".pth" files from. The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was:

/Users/sophiaw/.hashdist/bld/cython/e2t4ieqlgjl3/lib/python2.7/site-packages/

and your PYTHONPATH environment variable currently contains: '/Users/sophiaw/.hashdist/bld/cython/e2t4ieqlgjl3/Python.framework/Versions/2.7/lib/python2.7/site-packages:'

Here are some of your options for correcting the problem:

  • You can choose a different installation directory, i.e., one that is on PYTHONPATH or supports .pth files

  • You can add the installation directory to the PYTHONPATH environment variable. (It must then also be on PYTHONPATH whenever you run Python and want to use the package(s) you are installing.)

  • You can set up the installation directory to support ".pth" files by using one of the approaches described here:

https://pythonhosted.org/setuptools/easy_install.html#custom-installation-locations

Please make the appropriate changes for your system and try again.

Ich habe versucht, dies zu dem bash_profile hinzufügen, aber bekommen der gleiche Fehler:

export PYTHONPATH=/Users/sophiaw/.hashdist/bld/cython/e2t4ieqlgjl3/lib/python2.7/site-packages:$PYTHONPATH. 

Wie kann ich diesen Fehler beheben?

+0

Haben Sie die '.bash_profile'-Datei (mit dem Punkt' .') befallen oder loggen Sie sich nach der Bearbeitung ab? – cdarke

+0

@cdarke Ich habe es Quelle, aber habe den gleichen Fehler – sophia

+0

Nur versuchen, diese selbst auf OS X zu installieren ...... – cdarke

Antwort

0

Dies wurde von der Fenics-Support-Gruppe gelöst. Um FEINiCS unter OS X zu installieren, ist Docker eine bequemere Option.