help with visual studio

About programming and getting involved with Linux Mint development
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
larrypoynor
Level 1
Level 1
Posts: 39
Joined: Sat Jun 27, 2009 10:30 pm

help with visual studio

Post by larrypoynor »

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.
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.
User avatar
BwingBob
Level 3
Level 3
Posts: 183
Joined: Fri Sep 03, 2021 1:43 am
Location: Texas, USA.

Re: help with visual studio

Post by BwingBob »

TK is not installed on Mint by default.

Code: Select all

sudo apt install python3-tk
If you are using a virtual environment it needs to include site packages.

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
Locked

Return to “Programming & Development”