Phyton3-tkinter installation with pip issue

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
Ismorv
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:

Exception:
Traceback (most recent call last):
File "/home/sim/Python-projects/ALGORITMI-SPETTROSCOPIA/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/home/sim/Python-projects/ALGORITMI-SPETTROSCOPIA/lib/python3.6/site-packages/pip/commands/install.py", line 353, in run
wb.build(autobuilding=True)
File "/home/sim/Python-projects/ALGORITMI-SPETTROSCOPIA/lib/python3.6/site-packages/pip/wheel.py", line 749, in build
self.requirement_set.prepare_files(self.finder)
File "/home/sim/Python-projects/ALGORITMI-SPETTROSCOPIA/lib/python3.6/site-packages/pip/req/req_set.py", line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "/home/sim/Python-projects/ALGORITMI-SPETTROSCOPIA/lib/python3.6/site-packages/pip/req/req_set.py", line 554, in _prepare_file
require_hashes
File "/home/sim/Python-projects/ALGORITMI-SPETTROSCOPIA/lib/python3.6/site-packages/pip/req/req_install.py", line 278, in populate_link
self.link = finder.find_requirement(self, upgrade)
File "/home/sim/Python-projects/ALGORITMI-SPETTROSCOPIA/lib/python3.6/site-packages/pip/index.py", line 465, in find_requirement
all_candidates = self.find_all_candidates(req.name)
File "/home/sim/Python-projects/ALGORITMI-SPETTROSCOPIA/lib/python3.6/site-packages/pip/index.py", 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/index.py", line 568, in _get_pages
page = self._get_page(location)
File "/home/sim/Python-projects/ALGORITMI-SPETTROSCOPIA/lib/python3.6/site-packages/pip/index.py", 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/index.py", line 795, in get_page
resp.raise_for_status()
File "/home/sim/Python-projects/ALGORITMI-SPETTROSCOPIA/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/models.py", line 935, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://pypi.org/simple/tkinter/

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
experimenter
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”