I'm just starting to write a program in Visual Studio Code but I keep getting this message on the first line
import tkinter
The message is no module named 'tkinter' VS added the apostrophes. What would be the command in the terminal to check for the version on tkinter?
I've watched the video on you tube so I know import tkinter is correct.
help with visual studio
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Topics in this forum are automatically closed 6 months after creation.
- larrypoynor
- Level 1
- Posts: 39
- Joined: Sat Jun 27, 2009 10:30 pm
help with visual studio
Last edited by LockBot on Sun Mar 24, 2024 10:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: help with visual studio
TK is not installed on Mint by default.
If you are using a virtual environment it needs to include site packages.
Hope this helps.
Bob
Code: Select all
sudo apt install python3-tk
Hope this helps.
Bob
Pop_OS! 22.04 {Dell Inspiron 15 5510}
Linux Mint Cinnamon 21 {Minisforum UM700}
Pop_OS! Thelio Mira ;-)
We have met the enemy and he is us. - Pogo
Linux Mint Cinnamon 21 {Minisforum UM700}
Pop_OS! Thelio Mira ;-)
We have met the enemy and he is us. - Pogo