Problems after upgrading Python 3.6.3 to 3.6.5
Jim
jf_byrnes at comcast.net
Wed May 9 14:28:40 EDT 2018
I am running Linux Mint 18.1 and Python3 version 3.5.2,
Awhile ago I installed Python3.6 from LP-PPA-jonathonf-python-3.6/now.
I did it to run 3.6 in virtual environment. Everything was working until
I allowed the package manager to upgrade 3.6.3 to 3.6.5. See (1) below.
First problem I had was pip would not run. I solved that problem with
help from another forum. Then I discovered I could not import tkinter in
my 3.6 EV. At the end of the error message (2) it said to install
python3-tk. After i did so I could import tkinter in 3.6 but not the
default system python3.5.
At this point I checked the log (1) and saw that python3-tk had been
removed. Looking at the installed version of python3-tk it now said
3.6.5~16.04.york0.2.
So does the version matter between python3.5 and 3.6 or do I just have
some kind of path problem. At this point I am somewhat lost as to how to
get tkinter working again in 3.5.
Regards, Jim
(1)
Commit Log for Thu May 3 13:26:38 2018
Removed the following packages:
python3-tk
Upgraded the following packages:
libpython3.6-minimal (3.6.3-1ubuntu1~16.04.york1) to 3.6.5-5~16.04.york0
libpython3.6-stdlib (3.6.3-1ubuntu1~16.04.york1) to 3.6.5-5~16.04.york0
python3.6 (3.6.3-1ubuntu1~16.04.york1) to 3.6.5-5~16.04.york0
python3.6-minimal (3.6.3-1ubuntu1~16.04.york1) to 3.6.5-5~16.04.york0
python3.6-venv (3.6.3-1ubuntu1~16.04.york1) to 3.6.5-5~16.04.york0
Commit Log for Fri May 4 14:32:44 2018
Upgraded the following packages:
python3-gdbm (3.6.3-0ubuntu1~16.04.york0) to 3.6.5-3~16.04.york0.2
Commit Log for Sun May 6 09:28:25 2018
Installed the following packages:
python3-tk (3.6.5-3~16.04.york0.2)
Commit Log for Sun May 6 11:42:31 2018
Installed the following packages:
libexpat1-dev (2.1.0-7ubuntu0.16.04.3)
libpython3-dev (3.5.1-3)
libpython3.5-dev (3.5.2-2ubuntu0~16.04.4)
python3-dev (3.5.1-3)
python3.5-dev (3.5.2-2ubuntu0~16.04.4)
(2)
jfb at jims-mint18 ~ $ python3
Python 3.5.2 (default, Nov 23 2017, 16:37:01)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tkinter
Traceback (most recent call last):
File "/usr/lib/python3.5/tkinter/__init__.py", line 36, in <module>
import _tkinter
ImportError: No module named '_tkinter'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.5/tkinter/__init__.py", line 38, in <module>
raise ImportError(str(msg) + ', please install the python3-tk package')
ImportError: No module named '_tkinter', please install the python3-tk
package
>>>
More information about the Python-list
mailing list