简体   繁体   中英

Error message when trying to run PyAudio in Visual Studio Code (Flatpak)

Linux Mint 20.1

I was about to run a python program in Visual Studio Code (Flatpak), but then I got the following error message: NOTE: You must install tkinter on Linux to use MouseInfo. Run the following: sudo apt-get install python3-tk python3-dev. I ran the former code in my terminal, but I still get the error message.

Please help!

I was trying following commands in terminal

sudo dnf install python-tk
sudo dnf install python3-tk
sudo dnf install python3.8-tk

Then, I checked pip version

pip --version

pip 20.2.2 from /usr/lib/python3.9/site-packages/pip (python 3.9)

sudo dnf install python3.9-tk

pip3 install tkinter

I was getting same output each time

No match for argument: python3.x-tk Error: Unable to find a match: python3.x-tk

Then, I tried

sudo dnf install python3-tkinter

In few moment I had successfully got the packages of tkinter. I used sudo dnf cause I was using Linux Fedora. If you are using Linux Arch than, try sudo pacman . If you using Linux Mint, Kali Linux or something else than, try sudo apt-get

So, you should try

sudo apt-get install python3-tkinter

double check that you have pip installed

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM