I'm currently using python2 (2.7.6) and python3 (3.6.3) on my ubuntu 14.04 and I want to install python-tk and python3-tk together (so I can use matplotlib for both python). However, whenever I install one of them, it will remove the other one.
For example, when I have python3-tk, and install python-tk from apt-get, it will do this:
The following packages will be REMOVED:
blt python3-tk
After some try, I think the problem is in the blt package. Is there any what to install both python-tk and python3-tk on my computer?
Update, here is the output after I check the version of the packages (Currently I installed python3-tk(3.4.3) and blt(2.4) but it only works with python3.4, whenever I try to install python3-tk(3.6.3) and blt(2.5.3) it will cause the problem):
python-tk:
Installed: 2.7.5-1ubuntu1
Candidate: 2.7.5-1ubuntu1
Version table:
*** 2.7.5-1ubuntu1 0
500 http://ubuntuarchive.mirror.nac.net/ trusty/main amd64 Packages
100 /var/lib/dpkg/status
python3-tk:
Installed: 3.4.3-1~14.04.2
Candidate: 3.6.3-0ubuntu1~14.04.york0
Version table:
3.6.3-0ubuntu1~14.04.york0 0
500 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu/ trusty/main amd64 Packages
*** 3.4.3-1~14.04.2 0
500 http://ubuntuarchive.mirror.nac.net/ trusty-updates/main amd64 Packages
100 /var/lib/dpkg/status
3.4.0-0ubuntu1 0
500 http://ubuntuarchive.mirror.nac.net/ trusty/main amd64 Packages
blt:
Installed: 2.4z-7ubuntu2
Candidate: 2.5.3+dfsg-3~14.04.york1
Version table:
2.5.3+dfsg-3~14.04.york1 0
500 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu/ trusty/main amd64 Packages
*** 2.4z-7ubuntu2 0
500 http://ubuntuarchive.mirror.nac.net/ trusty/main amd64 Packages
100 /var/lib/dpkg/status
blt
package? I do not have problems withsudo apt-get install python-tk python3-tk blt
on clean 14.04 LTS installation. Please add output ofapt-cache policy python-tk python3-tk blt
to the question.