python3.5 installation PYTHON3-TK

Source: Internet
Author: User

After the installation of the python3.5 under the Matplotlib, ready to display a picture test, but the console error said need to install PYTHON3-TK, I naively thought direct:

sudo apt-get install PYTHON3-TK
I can do it. But no, say is not found the corresponding resources. I began a variety of Baidu, Google, online various posts, still did not solve my problems. Later found a PYTHON3-TK installation package, Deb format. I thought that would be all. Start execution:

sudo dpkg-i ... deb.
Found it dependent on BLT, which is what ghost, regardless of, first installed to say. This is not all kinds of, all kinds of dependence. He was tossed about for hours, almost doubting his life. Back to the beginning, staring at the mistake. I suddenly have a ripple in my mind, not to say that the corresponding resources are not matched. Then I will change the source for you, I am trembling to the Tsinghua's Mirror source replaced with the source of Ubuntu, and then update the source. In this way, updated for about 3 minutes, suddenly popped a box in front of me, almost let me cry out of the box, PYTHON3-TK. I clicked the start did not respond, I thought that just gave up.

Let's try it again at the command line.

sudo apt-get install PYTHON3-TK
Prompted me to run the
When I ran the program again, my dear picture appeared in front of me. God, I'm glad I didn't give up. 

In fact, the solution is very simple,

1. Change Source

2, update sudo apt-get update

3, sudo apt-get install PYTHON3-TK

4, sudo apt-get install-f

That's it. The diagram shown above:




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.