지난 2 일 이래로이 문제로 고생했습니다. 가능한 모든 솔루션을 스택 및 github에서 시도했습니다. 누군가가 추천 할 수 있다면 정말 좋을 것입니다.tkinter에 일치하는 배포 항목이 없습니다.
CentOS Linux 릴리스 7.3.1611의 가상 환경에서 Python 2.7을 사용하고 있습니다.
나는 matplotlib.pyplot를 사용하는 스크립트를 실행하고 실행에 내가 Tkinter를 사용 설치하려고
import matplotlib.pyplot as plt
File "/usr/local/packages/Python-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
이 오류 제공하고 - 나는 심지어 설치
pip install tkinter and it gave this error
Could not find a version that satisfies the requirement tkinter (from versions:)
No matching distribution found for tkinter
-
sudo yum install tk
sudo yum install tk-devel
sudo yum install tc
을
패키지가 이미 설치되어 있고 nothing to to
나는 뭔가를 놓친 지 다시 확인하기 위해 가상 환경을 설정했지만 어디에도 갈 수 없다. 도와주세요!
최신 우분투에서'apt-get' ('yum'와 유사)를 사용하여'python-tkinter'를 설치해야했습니다. 'tkinter와'tkinter는'tkinter'에 의해 사용되지만 그들은'python'에'tkinter'를 설치하지 않습니다 – furas
'yum'이'search/find' 명령을 가지고'tkinter' (' tk') – furas
@furas, yes 여러 포럼에서 읽었지 만'tk'와'tcl'을 설치하려고 할 때 아무 것도 할 수 없다고 알려줍니다! – AnkP