Mac OS X 10.11.6에서 FEnicS를 설치하는 동안 오류가 발생했습니다. 이 웹 사이트에서 유사한 질문에 대한 답변을 읽었으며 제안 된 해결책을 시도했지만 잘못된 것이 있습니다.Mac OS X 오류 : PYTHONPATH에 있지 않고 Python이 ".pth"파일을 읽지 않는 디렉토리
[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.
curl -s https://fenicsproject.org/fenics-install.sh | bash
: 명령을 실행에
나는 이것을 bash_profile에 추가하려고 시도했지만 get 같은 오류 :
export PYTHONPATH=/Users/sophiaw/.hashdist/bld/cython/e2t4ieqlgjl3/lib/python2.7/site-packages:$PYTHONPATH.
가 어떻게이 오류를 해결할 수 있습니까?
'.bash_profile' 파일 (점'.' 사용) 명령을 사용 했습니까, 아니면 편집 후 logoff/login 했습니까? – cdarke
@cdarke 나는 소스를 만들었지 만 동일한 오류가 발생했습니다. – sophia
OS X에서 직접 설치하려고 시도합니다 ...... – cdarke