当前位置:   article > 正文

No module named 'tkinter'_debian no module named tkinter

debian no module named tkinter
  1. mrc@mrc-Inspiron-7472:/$ workon env3
  2. (env3) mrc@mrc-Inspiron-7472:/$ pip install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple
  3. Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
  4. Collecting pip
  5.   Using cached https://pypi.tuna.tsinghua.edu.cn/packages/f9/fb/863012b13912709c13cf5cfdbfb304fa6c727659d6290438e1a88df9d848/pip-19.1-py2.py3-none-any.whl
  6. Installing collected packages: pip
  7.   Found existing installation: pip 19.0.3
  8.     Uninstalling pip-19.0.3:
  9.       Successfully uninstalled pip-19.0.3
  10. Successfully installed pip-19.1
  11. (env3) mrc@mrc-Inspiron-7472:/$ pip install tkinter -i https://pypi.tuna.tsinghua.edu.cn/simple
  12. Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
  13. Collecting tkinter
  14.   ERROR: Could not find a version that satisfies the requirement tkinter (from versions: none)
  15. ERROR: No matching distribution found for tkinter
  16. (env3) mrc@mrc-Inspiron-7472:/$ pip install tkinter -i http://pypi.douban.com/simple/
  17. Looking in indexes: http://pypi.douban.com/simple/
  18. Collecting tkinter
  19.   WARNING: The repository located at pypi.douban.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host pypi.douban.com'.
  20.   ERROR: Could not find a version that satisfies the requirement tkinter (from versions: none)
  21. ERROR: No matching distribution found for tkinter
  22. (env3) mrc@mrc-Inspiron-7472:/$ pip install tkinter -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
  23. Looking in indexes: http://pypi.douban.com/simple/
  24. Collecting tkinter
  25.   ERROR: Could not find a version that satisfies the requirement tkinter (from versions: none)
  26. ERROR: No matching distribution found for tkinter
  27. 发现并不是清华源不好,
  28. (env3) mrc@mrc-Inspiron-7472:/$ sudo apt-get install python3-tk
  29. [sudo] mrc 的密码:
  30. 正在读取软件包列表... 完成
  31. 正在分析软件包的依赖关系树       
  32. 正在读取状态信息... 完成       
  33. 将会同时安装下列软件:
  34.   blt libtcl8.6 libtk8.6 tk8.6-blt2.5
  35. 建议安装:
  36.   blt-demo tcl8.6 tk8.6 tix python3-tk-dbg
  37. 下列【新】软件包将被安装:
  38.   blt libtcl8.6 libtk8.6 python3-tk tk8.6-blt2.5
  39. 升级了 0 个软件包,新安装了 5 个软件包,要卸载 0 个软件包,有 30 个软件包未被升级。
  40. 需要下载 2,252 kB 的归档。
  41. 解压缩后会消耗 9,231 kB 的额外空间。
  42. 您希望继续执行吗? [Y/n] y
  43. 获取:1 http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 libtcl8.6 amd64 8.6.8+dfsg-3 [881 kB]
  44. 获取:2 http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 libtk8.6 amd64 8.6.8-4 [693 kB]
  45. 获取:3 http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 tk8.6-blt2.5 amd64 2.5.3+dfsg-4 [572 kB]
  46. 获取:4 http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 blt amd64 2.5.3+dfsg-4 [4,944 B]
  47. 获取:5 http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 python3-tk amd64 3.6.5-3 [100 kB]
  48. 已下载 2,252 kB,耗时 16秒 (137 kB/s)                                          
  49. 正在选中未选择的软件包 libtcl8.6:amd64
  50. (正在读取数据库 ... 系统当前共安装有 173917 个文件和目录。)
  51. 正准备解包 .../libtcl8.6_8.6.8+dfsg-3_amd64.deb  ...
  52. 正在解包 libtcl8.6:amd64 (8.6.8+dfsg-3) ...
  53. 正在选中未选择的软件包 libtk8.6:amd64
  54. 正准备解包 .../libtk8.6_8.6.8-4_amd64.deb  ...
  55. 正在解包 libtk8.6:amd64 (8.6.8-4) ...
  56. OK

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/663956
推荐阅读
相关标签
  

闽ICP备14008679号