2016-08-26 5 views
1

Я получаю сообщение об ошибке при попытке установить FEICS в Mac OS X 10.11.6. Я прочитал ответы на похожие вопросы на этом веб-сайте и попробовал предлагаемые решения, но я должен что-то делать неправильно.Ошибка Mac OS X: каталог, который не находится на PYTHONPATH, и который Python не читает «.pth» файлы с

На выполнении команды:

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

Я получаю сообщение об ошибке при пакет Cython происходит установка:

[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. 

Сообщение от build.log является:

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.

Я попытался добавить это в файл bash_profile, но та же ошибка:

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

Как я могу исправить эту ошибку?

+0

Вы «отправили» файл '.bash_profile' (используя команду dot' .') или вышли из системы после входа в систему? – cdarke

+0

@cdarke Я использовал его, но получил ту же ошибку – sophia

+0

Просто попытался установить это самостоятельно на OS X ...... – cdarke

ответ

0

Это решение было разрешено группой поддержки fenics. для установки FEniCS на OS X, Docker - более удобный вариант.