element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Community Hub
Community Hub
Member's Forum Python installation
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Leaderboard
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Community Hub to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 4 replies
  • Subscribers 508 subscribers
  • Views 375 views
  • Users 0 members are here
Related

Python installation

Former Member
Former Member over 9 years ago

Where to get beaglebone Debian distribution ? How to install python,matplotlib,tkinter,tk.

  • Sign in to reply
  • Cancel
  • clem57
    0 clem57 over 9 years ago

    Check BeagleBoard.org - latest-images for download of images. I would try one without using eMMC first and verify it works. Once you flash, no way to go back without a re-flash. Directions are here -> https://beagleboard.org/getting-started#update. Read first and understand. Then try. Post here if you have any doubts.

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • clem57
    0 clem57 over 9 years ago in reply to clem57

    After building a Debian system, you should have python.The others will be updated when you use Linux package manager called aptitude. Read about and ask if you get stuck.

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 9 years ago in reply to clem57

    Thanks Clem. My BBB came with Debian bone47. I was able to run my Python code that has a GUI using Matplotlib, Tkinter, etc with a graph, buttons, text boxes and all that. I have the 4D Systems 4DCAPE attached to my BBB.

     

    Then I was trying to use the Adafruit BBIO for PWM and ADC but had problems so flashed the BBB with a newer Debian, bone79, and since then haven't been able to get my Python program to run. I couldn't install Tkinter and tk etc. Now I cannot even install Matplotlib: when I try to install it, I get an error that Matplotlib cannot be found. Now I am trying to install Python, Matplotlib, Tkinter, tk etc on the Debian bone50, it's 3.8.13 bone50.

    I ran these steps but get error:

     

    "from matplotlib.backends import _tkagg

    ImportError: cannot import name _tkagg"

     

    So I'm still dead-in-the-water. That tkagg seems to be the problem and cannot find a solution. I found suggetsions from stackoverflow but their suggestions don't seem to help (http://stackoverflow.com/questions/32188180/from-matplotlib-backends-import-tkagg-importerror-cannot-import-name-tkagg/3…)).

     

    With internet connection:

    sudo apt-get install python

    sudo apt-get install python-numpy

    sudo ntpdate pool.ntp.org

    sudo apt-get update

    sudo.apt-get install build-essential python-dev python-setuptools python-smbus -y

    which dtc

    sudo pip install matplotlib

    sudo apt-get install python-tk

    sudo apt-get install tk-dev

    sudo apt-get update && apt-get install  python-serial  python-setuptools python-dev  python-smbus  python-pip

    pip install --upgrade PyBBIO

     

    John

    johnbakeree@blogspot.com

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 9 years ago in reply to Former Member

    I misspoke. I can now install matplotlib but I get the error:

     

    "from matplotlib.backends import _tkagg

    ImportError: cannot import name _tkagg"

     

    when I try to run my Python code. So apparently I don't have tkinter or tk or something installed and can't figure out how to get it.

    John

    johnbakeree@blogspot.com

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube