[英]Trying to use urllib with headers but I keep on getting this error: TypeError: a float is required. I'm using python 3.4
[英]I'm trying to use tkinter on python in sublime text on ubuntu but i keep getting a error
所以我試圖在配置為 python3.8 的崇高文本中導入 tkinter 但我一直收到這個錯誤
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.8/tkinter/__init__.py", line 36, in <module>
import _tkinter # If this fails your Python may not be configured for Tk
ModuleNotFoundError: No module named '_tkinter'
任何人都可以幫助我,因為我真的很想重新參與學校項目
您是在進口 tkinter 嗎? 如果確實有導入,則可能需要安裝它:sudo apt-get install python3-tk
否則,請發布您的代碼。
import tkinter
如果未安裝:
sudo apt-get install python3-tk
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.