2012-02-24 3 views
1

Mac OS X 10.6에서 TortoiseHg를 사용하려고합니다. 나는 가장 최근의 TortoiseHg를 다운로드했다. 맥 파이썬 2.6와 함께,하지만 2.7을 설치 : 나는 TortoiseHg를 시작하려고하면TortoiseHg가 파이썬을 찾을 수 없다고 불평합니다.

ftwomfg-63-12:~ muffins$ python 
Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin 
Type "help", "copyright", "credits" or "license" for more information. 
>>> 

, 나는 다음과 같은 오류를 얻을 :

thg[18006] A Python runtime not could be located. You may need to install a framework build of Python, or edit the PyRuntimeLocations array in this application's Info.plist file.

가 어떻게이 문제를 해결할 수 있습니까?

당신은 입력하여 파이썬의 경로를 얻을 수 있습니다
+0

경로에 파이썬 인터프리터를 추가하십시오 ('.bash_profile'에'PATH'를 편집하십시오). –

답변

0

:

/Library/Frameworks/Python.framework/Versions/2.7/bin/Python

: 뭔가를 반환 할 수있는

which python 

다음으로 Info.plist 파일을 TortoiseHg.app/Contents 디렉토리에서 편집하려고합니다.

<key>PyRuntimeLocations</key> 
<array> 
    <string>@executable_path/../Frameworks/Python.framework/Versions/2.7/Python</string> 
    <string>/System/Library/Frameworks/Python.framework/Versions/2.7/Python</string> 
</array> 
당신은에서 경로에 두 번째 문자열의 내용을 변경할 수 있습니다

위 명령 : 파일 내부, 당신은 같은 것을 볼 수 있습니다.

관련 문제