无法安装tkinter, python3-tk
Tofloor
poster avatar
FIRM
deepin
2018-04-17 18:17
Author
使用deepin系统学习python的时候,需要使用matplotlib作图,但是该包依赖于tkinter,如图
ImportError: No module named '_tkinter', please install the python3-tk package
在网上找了很多教程,说运行命令可以解决:
sudo apt-get install python3-tk
sudo apt-get install python-tk
但是在deepin下出现如下错误,不能安装:
您希望继续执行吗? [Y/n] y
获取:1 http://222.27.246.241/files/206300000129F18F/mirror.neu.edu.cn/ubuntu panda/main amd64 tk8.6-blt2.5 amd64 2.5.3+dfsg-3 [585 kB]
错误:1 http://222.27.246.241/files/206300000129F18F/mirror.neu.edu.cn/ubuntu panda/main amd64 tk8.6-blt2.5 amd64 2.5.3+dfsg-3
  Hash 校验和不符
  Hashes of expected file:
   - SHA256:88587a928e2bd692650d98c1483b67f1dee1fed57730077c895e689462af1569
   - SHA1:3ca151ae3d69102ec5c46d919edbd3c8a4682752 [weak]
   - MD5Sum:bc318b2bc3edb9abe00261fd7a7614f7 [weak]
   - Filesize:585172 [weak]
  Hashes of received file:
   - SHA256:7eda4a0191e9983ddb24d874a9db4543f93c5e280026d35dfedddc4d2c12de3b
   - SHA1:e3ebe93c85f2432b29ad4b7a97d50f658435e2d1 [weak]
   - MD5Sum:74f55afadd2c0245a717c279ae2de61b [weak]
   - Filesize:573982 [weak]
  Last modification reported: Tue, 21 Feb 2017 14:19:48 +0000
已下载 574 kB,耗时 0秒 (2,999 kB/s)  
E: 无法下载 http://222.27.246.241/files/206300000129F18F/mirror.neu.edu.cn/ubuntu/pool/main/b/blt/tk8.6-blt2.5_2.5.3+dfsg-3_amd64.deb  Hash 校验和不符
   Hashes of expected file:
    - SHA256:88587a928e2bd692650d98c1483b67f1dee1fed57730077c895e689462af1569
    - SHA1:3ca151ae3d69102ec5c46d919edbd3c8a4682752 [weak]
    - MD5Sum:bc318b2bc3edb9abe00261fd7a7614f7 [weak]
    - Filesize:585172 [weak]
   Hashes of received file:
    - SHA256:7eda4a0191e9983ddb24d874a9db4543f93c5e280026d35dfedddc4d2c12de3b
    - SHA1:e3ebe93c85f2432b29ad4b7a97d50f658435e2d1 [weak]
    - MD5Sum:74f55afadd2c0245a717c279ae2de61b [weak]
    - Filesize:573982 [weak]
   Last modification reported: Tue, 21 Feb 2017 14:19:48 +0000
E: 有几个软件包无法下载,要不运行 apt-get update 或者加上 --fix-missing 的选项再试试?

请求解答
Reply Favorite View the author
All Replies
avatar
4***8@qq.com
deepin
2018-04-17 18:43
#1
你这怎么会有ubuntu的源啊,深度的源不是这个啊,看一下你的源文件是不是自己添加了别的源。
Reply View the author
avatar
FIRM
deepin
2018-04-17 22:58
#2
https://bbs.deepin.org/post/155480
你这怎么会有ubuntu的源啊,深度的源不是这个啊,看一下你的源文件是不是自己添加了别的源。 ...

没有换源,不信你可以安装试试,看是不是一样的结果
Reply View the author
avatar
Lyvnee
deepin
2018-04-18 00:50
#3
网络运营商缓存问题
Reply View the author
avatar
FIRM
deepin
2018-04-18 00:58
#4
https://bbs.deepin.org/post/155480
网络运营商缓存问题

有什么解决方法吗
Reply View the author
avatar
Lyvnee
deepin
2018-04-18 01:38
#5
Reply View the author
avatar
FIRM
deepin
2018-04-18 03:42
#6
https://bbs.deepin.org/post/155480
试试这个
https://bbs.deepin.org/post/39827

ok,已解决,多谢多谢
Reply View the author
avatar
ritter
deepin
2018-04-18 06:40
#7
matplotlib早就已经依赖qt了吧,tkinter没人用了。
Reply View the author
avatar
FIRM
deepin
2018-04-18 17:55
#8
https://bbs.deepin.org/post/155480
matplotlib早就已经依赖qt了吧,tkinter没人用了。

qt是自带的还是需要安装,怎么我上面编译提示错误是安装python3-tk
Reply View the author
avatar
ritter
deepin
2018-04-19 00:29
#9
https://bbs.deepin.org/post/155480
qt是自带的还是需要安装,怎么我上面编译提示错误是安装python3-tk

你还是装anaconda吧,基本上所有的python要用到的库都有,省事多了。
Reply View the author