国产成人精品亚洲777人妖,欧美日韩精品一区视频,最新亚洲国产,国产乱码精品一区二区亚洲

您的位置:首頁技術文章
文章詳情頁

python - matplotlib安裝之后使用出錯

瀏覽:87日期:2022-06-27 10:50:02

問題描述

產生錯誤:

ImportError: No module named ’_tkinter’, please install the python3-tk package

在網上找到的解決方法是安裝 python3-tk包:

但是在我使用的 ubuntu17.04 中找不到這個包,求解決辦法?

問題解答

回答1:

你把更新源換一下,然后重新試一下,換成國內阿里或者其它的。

命令行:先備份sudo /etc/apt/sources.list /etc/apt/sources.list.bak然后編輯 sudo gedit /etc/apt/sources.list把以下內容放進去替換掉原來的源

deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse##測試版源deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse# 源碼deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse##測試版源deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse# Canonical 合作伙伴和附加deb http://archive.canonical.com/ubuntu/ xenial partnerdeb http://extras.ubuntu.com/ubuntu/ xenial main

save保存命令行:sudo apt-get updatesudo apt-get upgradesudo apt-get install python3-tk

標簽: Python 編程
相關文章:
主站蜘蛛池模板: 定安县| 麟游县| 玉门市| 利川市| 鄂尔多斯市| 元阳县| 沁源县| 闽侯县| 沅江市| 邻水| 彩票| 临武县| 泌阳县| 遂溪县| 宣城市| 突泉县| 梅河口市| 固安县| 台南县| 桦甸市| 永善县| 蓬溪县| 阿克| 吐鲁番市| 宝鸡市| 丰城市| 磐石市| 金阳县| 常宁市| 建瓯市| 海阳市| 泰宁县| 措美县| 嘉善县| 安达市| 邵武市| 长泰县| 蒙自县| 鄂伦春自治旗| 镇平县| 南乐县|