2016-06-21 3 views
1

OS X에서 scipy를 설치하려고 할 때 일시적으로 Anaconda를 설치하고 Tk의 두 가지 버전을 사용하고 있습니다. 이 문제를 해결하기 위해 Tk 또는 tkinter 파일의 원래 버전 (예 : _tkinter.so 또는 일부, 중첩/System 또는 아마도/Library)을 임시 위치로 이동했습니다. 나는 결국 아나콘다를 제거, 내가, 예를 들어, 거북이 라이브러리를 가져올 때 지금, 나는 오류가 발생합니다 :얽힌 tkinter

Traceback (most recent call last): 
    File "<stdin>", line 1, in <module> 
    File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/turtle.py", line 107, in <module> 
    import Tkinter as TK 
    File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py", line 39, in <module> 
    import _tkinter # If this fails your Python may not be configured for Tk 
ImportError: No module named _tkinter 

사람이 어떻게 복구/설치되었다 TK에의 원래 버전을 다시 설치 말해 줄 수 OS X? 터미널 및 유형

+0

내가 나의 Mac에서하는 것은 ActiveState의 ActivePython을 설치하고 Python의 시스템 버전 사용을 잊어 버리는 것이다. –

답변

0

알았어 :

sudo apt-get python-tk 

그리고

이것은 당신처럼 패키지 아나콘다를 제거 할 수 있습니다 작동하지 않는 경우와 같은 Tkinter의를

apt-get remove [anaconda] 

그리고 다시 설치

sudo apt-get python-tk