Phyton3-tkinter installation with pip issue

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
Level 1
Level 1
Posts: 1
Joined: Sun Sep 08, 2019 12:13 pm

Phyton3-tkinter installation with pip issue

Post by Ismorv » Sun Sep 08, 2019 12:26 pm

Hello everyone,
I have Linux Mint 64 bit ( Tina 19.2 , Cinnamon edition) on my laptop.
The only operations I did were:
-Creating a virtual environment for Phyton3 with the command:
python3 -m venv [Virtual environment name]
-Activating the virtual environment with the command:
source [Virtual environment name]/bin/activate
-installing with pip some packages i neded with the command:
python3 -m pip install [package name]
Everything worked fine for scipy, matplotlib and numpy packages but for tkinter and math i got the following (enormous) error message:

Traceback (most recent call last):
File "/home/sim/Python-projects/ALGORITMI-SPETTROSCOPIA/lib/python3.6/site-packages/pip/", line 215, in main
status =, args)
File "/home/sim/Python-projects/ALGORITMI-SPETTROSCOPIA/lib/python3.6/site-packages/pip/commands/", line 353, in run
File "/home/sim/Python-projects/ALGORITMI-SPETTROSCOPIA/lib/python3.6/site-packages/pip/", line 749, in build
File "/home/sim/Python-projects/ALGORITMI-SPETTROSCOPIA/lib/python3.6/site-packages/pip/req/", line 380, in prepare_files
File "/home/sim/Python-projects/ALGORITMI-SPETTROSCOPIA/lib/python3.6/site-packages/pip/req/", line 554, in _prepare_file
File "/home/sim/Python-projects/ALGORITMI-SPETTROSCOPIA/lib/python3.6/site-packages/pip/req/", line 278, in populate_link = finder.find_requirement(self, upgrade)
File "/home/sim/Python-projects/ALGORITMI-SPETTROSCOPIA/lib/python3.6/site-packages/pip/", line 465, in find_requirement
all_candidates = self.find_all_candidates(
File "/home/sim/Python-projects/ALGORITMI-SPETTROSCOPIA/lib/python3.6/site-packages/pip/", line 423, in find_all_candidates
for page in self._get_pages(url_locations, project_name):
File "/home/sim/Python-projects/ALGORITMI-SPETTROSCOPIA/lib/python3.6/site-packages/pip/", line 568, in _get_pages
page = self._get_page(location)
File "/home/sim/Python-projects/ALGORITMI-SPETTROSCOPIA/lib/python3.6/site-packages/pip/", line 683, in _get_page
return HTMLPage.get_page(link, session=self.session)
File "/home/sim/Python-projects/ALGORITMI-SPETTROSCOPIA/lib/python3.6/site-packages/pip/", line 795, in get_page
File "/home/sim/Python-projects/ALGORITMI-SPETTROSCOPIA/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/", line 935, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url:

How can I install tkinter and math packages?
I'm a new Linux user, so please explain all the passages in a clear and simple way, avoiding too specific terms.

User avatar
Level 1
Level 1
Posts: 19
Joined: Fri Apr 30, 2010 3:54 pm

Re: Phyton3-tkinter installation with pip issue

Post by experimenter » Tue Sep 10, 2019 5:44 am

Tkinter (since Python 3.1, ttk) and math are included with linux mint standard Python distributions. Please make sure Tk 8.5 or higher is installed.
run the following to make sure you have all the dependencies installed.

Code: Select all

apt install python3-tk tk8.6 

Post Reply

Return to “Software & Applications”