【问题标题】:Python3.5 tk package showing errorPython3.5 tk包显示错误
【发布时间】:2017-04-18 21:33:15
【问题描述】:

在安装 Python3.5-tk 包时,我收到此错误。我不确定我做错了什么。

$sudo apt-get install python3-tk

The following NEW packages will be installed:
  python3-tk
0 upgraded, 1 newly installed, 0 to remove and 585 not upgraded.
Need to get 0 B/42.2 kB of archives.
After this operation, 247 kB of additional disk space will be used.
(Reading database ... 400408 files and directories currently installed.)
Preparing to unpack .../python3-tk_3.5.3-1ubuntu1~14.04.york1.1_amd64.deb ...
Unpacking python3-tk:amd64 (3.5.3-1ubuntu1~14.04.york1.1) ...
dpkg: error processing archive /var/cache/apt/archives/python3-tk_3.5.3-1ubuntu1~14.04.york1.1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/python3.5/lib-dynload/_tkinter.cpython-35m-x86_64-linux-gnu.so', which is also in package libpython3.5-tk:amd64 3.5.2-1~trusty1
Errors were encountered while processing:
 /var/cache/apt/archives/python3-tk_3.5.3-1ubuntu1~14.04.york1.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

那么我在这里做错了什么?请帮忙

【问题讨论】:

  • python 附带 tk 安装

标签: python python-3.5


【解决方案1】:

你可以试试:

sudo apt-get clean
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install python-support
sudo update-python-modules -a
sudo apt-get install python3-tk

【讨论】:

    猜你喜欢
    • 2018-04-25
    • 2018-02-18
    • 1970-01-01
    • 1970-01-01
    • 2017-01-30
    • 1970-01-01
    • 2020-12-25
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多