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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • 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
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum DOWNLOADING NEW VERSION OF PYTHON ONTO RASPBERRY PI
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 5 replies
  • Subscribers 674 subscribers
  • Views 731 views
  • Users 0 members are here
  • raspberry_pi
Related

DOWNLOADING NEW VERSION OF PYTHON ONTO RASPBERRY PI

Former Member
Former Member over 13 years ago

I have just bought a pi for my son aged 13 as he is interested in a career in computing. This came with a pre-installed SD card with various programming languages including Python v2.6.  We were informed this is quite a good language to learn for beginners so bought a book entitled "Invent your own computer games with python" by Al Sweigart.  However in order to use the programs in the book I need to use a later version of Python. 

 

Please could you let me know in easy to understand language what operating system version I need to download and how I get this onto my SD card so it will come up as an option when the card is inserted into the Pi.

 

We are keen to make a start so a early response would be appreciated.

 

Thanks

 

Stephen Richards

England

  • Sign in to reply
  • Cancel
Parents
  • Former Member
    Former Member over 13 years ago

    Hi Stephen.

     

    If you want the latest software on your sons Pi, try the following commands in a terminal once you are logged into the Pi.

     

    sudo apt-get update && sudo apt-get upgrade

     

    then

     

    sudo apt-get install python

     

    This will give you the latest Pi supported version of Python. If you prefer an ever more up todate version or a specific version to match the book, you will have to go through a few more hoops.

     

    See if the above helps first.

     

    Good luck

     

    Ray

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 13 years ago in reply to Former Member

    Ray

     

    Thanks for your response, this seems to have downloaded something onto my pi but how do I now load it up to use and also create an icon on my desk top for my son to use to load it in the future.

     

    Thanks

     

    Steve

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 13 years ago in reply to Former Member

    Hi Steve my answer to this will really depend on how much you know about Linux generally and what version of Python does that book suggest you use. I am only being a little vague because as with all things Linux there are several ways to do most things and I would like to offer you and your son the best option.

     

    What version of Linux is the Pi using? (Most likely Debian wheezy or Raspbian)

     

    What version of Python is now installed after the updated commands? (you can do python --version in a terminal to get this)

     

    What version of Python is the book you have expecting you to use?

     

    Sorry about all this but to give a best answer requires some basic infor.

     

    Ray

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 13 years ago in reply to Former Member

    Ray

     

    The operating system seems to be Debian GNU/Linux 6.0

    The version of python that is now installed after running your upgrade script is still 2.6.6 and the version I need in order to run the programs in the book is 3.1

     

    Thanks for all your help, I would be lost otherwise.

     

    Steve

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 13 years ago in reply to Former Member

    http://www.python.org/download/ Hi Steve

     

    If you have a look at the main Python website ( http://www.python.org/download/) you will see there are 2 current versions. Either of these are suitable for learning the language. But Debian is a Linux distribution thats likes to keep to known stable versions. thus your 2.6.6.

     

    However I think that compiling the lastest from source may be more than you are ready to get into at the moment.

     

    Good luck with whatever you and your son get up to with the Pi and Python in the future,

     

    Ray

     

    P.S. The currently "preferred" OS for the Pi via the Raspberrry Pi Org website is Raspbian "wheezy". See the download page at http://www.raspberrypi.org/downloads which does use Python3 version 3.2.2 (after doing a sudo apt-get update && sudo apt-get upgrade) You need to type python3 to run in from a terminal not just python. I would use a different SD card for the Raspbian OS if you decide to try it. A spare card is always a handy thing to have. image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Former Member
    Former Member over 13 years ago in reply to Former Member

    http://www.python.org/download/ Hi Steve

     

    If you have a look at the main Python website ( http://www.python.org/download/) you will see there are 2 current versions. Either of these are suitable for learning the language. But Debian is a Linux distribution thats likes to keep to known stable versions. thus your 2.6.6.

     

    However I think that compiling the lastest from source may be more than you are ready to get into at the moment.

     

    Good luck with whatever you and your son get up to with the Pi and Python in the future,

     

    Ray

     

    P.S. The currently "preferred" OS for the Pi via the Raspberrry Pi Org website is Raspbian "wheezy". See the download page at http://www.raspberrypi.org/downloads which does use Python3 version 3.2.2 (after doing a sudo apt-get update && sudo apt-get upgrade) You need to type python3 to run in from a terminal not just python. I would use a different SD card for the Raspbian OS if you decide to try it. A spare card is always a handy thing to have. image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
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