Comments on: How to Write and Run a Python Program on the Raspberry Pi http://www.circuitbasics.com/how-to-write-and-run-a-python-program-on-the-raspberry-pi/ Raspberry Pi, Arduino, and DIY Electronics Projects and Tutorials Mon, 22 Jan 2018 02:48:22 +0000 hourly 1 By: Faisal Hafeez http://www.circuitbasics.com/how-to-write-and-run-a-python-program-on-the-raspberry-pi/#comment-14342 Tue, 12 Dec 2017 17:54:26 +0000 http://www.circuitbasics.com/?p=214283#comment-14342 Nicely described , well done

]]>
By: RON http://www.circuitbasics.com/how-to-write-and-run-a-python-program-on-the-raspberry-pi/#comment-9277 Thu, 05 Oct 2017 22:13:17 +0000 http://www.circuitbasics.com/?p=214283#comment-9277 I am trying to write SPI protocol code using Python. Do you have any related articles or links?
Thanks for the help.

]]>
By: Lynn http://www.circuitbasics.com/how-to-write-and-run-a-python-program-on-the-raspberry-pi/#comment-9029 Mon, 02 Oct 2017 11:13:59 +0000 http://www.circuitbasics.com/?p=214283#comment-9029 Awesome post, thanks for sharing maybe you should also visit http://programmer.science/category/python-programming-tutorial this site is great for python programming tutorial said my dad.

]]>
By: ramin http://www.circuitbasics.com/how-to-write-and-run-a-python-program-on-the-raspberry-pi/#comment-4123 Sat, 01 Jul 2017 09:46:09 +0000 http://www.circuitbasics.com/?p=214283#comment-4123 very good Idea. Ahsant

]]>
By: gary http://www.circuitbasics.com/how-to-write-and-run-a-python-program-on-the-raspberry-pi/#comment-3794 Wed, 21 Jun 2017 00:23:23 +0000 http://www.circuitbasics.com/?p=214283#comment-3794 On my Pi3 using Python 3 I need to enter () parins to enclose “Hello”. Also no semicolon is needed (but works OK). BTW, SUDO NANO does not work. I tried python3 in terminal and used Python 3.4.2 Shell (IDLE) both.

This means there are syntax differences between differing versions and models. That takes away a LOT of the simplicity.

]]>
By: Guitarists Hoodies http://www.circuitbasics.com/how-to-write-and-run-a-python-program-on-the-raspberry-pi/#comment-3783 Tue, 20 Jun 2017 13:51:48 +0000 http://www.circuitbasics.com/?p=214283#comment-3783 They usually like to be β€œin” and updated when it comes to clothing and apparel.

Note: people love to talk about themselves, so ask her a question, let her talk and you listen. There will be plenty of good food
and drink offered up along with numerous vendors ranging in flowers, crafts, antiques and more.

]]>
By: fred http://www.circuitbasics.com/how-to-write-and-run-a-python-program-on-the-raspberry-pi/#comment-2619 Wed, 19 Apr 2017 18:33:22 +0000 http://www.circuitbasics.com/?p=214283#comment-2619 macey is a pal

]]>
By: aly http://www.circuitbasics.com/how-to-write-and-run-a-python-program-on-the-raspberry-pi/#comment-2308 Mon, 20 Mar 2017 13:04:08 +0000 http://www.circuitbasics.com/?p=214283#comment-2308 hi can you plz help me with a simple project on python plz.

]]>
By: Anonymous http://www.circuitbasics.com/how-to-write-and-run-a-python-program-on-the-raspberry-pi/#comment-1998 Tue, 27 Dec 2016 22:01:14 +0000 http://www.circuitbasics.com/?p=214283#comment-1998 3

]]>
By: Shivam Mahajan http://www.circuitbasics.com/how-to-write-and-run-a-python-program-on-the-raspberry-pi/#comment-1687 Mon, 26 Sep 2016 12:14:28 +0000 http://www.circuitbasics.com/?p=214283#comment-1687 But where is the concept of raspberry Pi

]]>
By: Hamza Al-Omari http://www.circuitbasics.com/how-to-write-and-run-a-python-program-on-the-raspberry-pi/#comment-1516 Fri, 05 Aug 2016 16:35:05 +0000 http://www.circuitbasics.com/?p=214283#comment-1516 Nope ????

]]>
By: Waleed Alrashed http://www.circuitbasics.com/how-to-write-and-run-a-python-program-on-the-raspberry-pi/#comment-1515 Fri, 05 Aug 2016 16:26:30 +0000 http://www.circuitbasics.com/?p=214283#comment-1515 Hamza Al-Omari then you hate a big part of ur study πŸ˜›

]]>
By: Hamza Al-Omari http://www.circuitbasics.com/how-to-write-and-run-a-python-program-on-the-raspberry-pi/#comment-1514 Fri, 05 Aug 2016 16:16:27 +0000 http://www.circuitbasics.com/?p=214283#comment-1514 I h8 circuits ????

]]>
By: Waleed Alrashed http://www.circuitbasics.com/how-to-write-and-run-a-python-program-on-the-raspberry-pi/#comment-1513 Fri, 05 Aug 2016 16:12:24 +0000 http://www.circuitbasics.com/?p=214283#comment-1513 Hamza Al-Omari since you’re gearing up for python, think that you might be interested in IOT devices, don’t you think??

]]>
By: Kyran http://www.circuitbasics.com/how-to-write-and-run-a-python-program-on-the-raspberry-pi/#comment-1427 Sun, 17 Jul 2016 16:34:26 +0000 http://www.circuitbasics.com/?p=214283#comment-1427 Darren, you cannot put the . in front of a full path to “run” a script. you need to invoke Python to run the program. The way you are trying to run a program is a bash script, not python program. do this:

python /home/pi/test/hello.py
or cd into the directory, like this: cd /home/pi/test
and then call the python program like this: python hello.py

Good luck!

]]>
By: Darren http://www.circuitbasics.com/how-to-write-and-run-a-python-program-on-the-raspberry-pi/#comment-1340 Tue, 21 Jun 2016 02:16:08 +0000 http://www.circuitbasics.com/?p=214283#comment-1340 Hi,
I want to run the hello.py this program, I can run the chmod +x /home/pi/test/hello.py. After that, I type ./home/pi/test/hellp.py. It shows a error message.
-bash: ./home/pi/test/hello.py: No such file or directory.
I’m sure the hello.py is in /home/pi/test/ .
Do you have any idea to fix it?
Thanks

]]>
By: Edward Kierklo http://www.circuitbasics.com/how-to-write-and-run-a-python-program-on-the-raspberry-pi/#comment-1259 Wed, 25 May 2016 17:08:05 +0000 http://www.circuitbasics.com/?p=214283#comment-1259 Nice elegant solution that worked flawlessly the first time.

]]>
By: jian http://www.circuitbasics.com/how-to-write-and-run-a-python-program-on-the-raspberry-pi/#comment-1181 Thu, 28 Apr 2016 17:40:13 +0000 http://www.circuitbasics.com/?p=214283#comment-1181 Can you share any idea and example to me? thanks

]]>
By: Ryan http://www.circuitbasics.com/how-to-write-and-run-a-python-program-on-the-raspberry-pi/#comment-1132 Sun, 03 Apr 2016 22:30:27 +0000 http://www.circuitbasics.com/?p=214283#comment-1132 How would you recommend editing a file that you need root authority for?

]]>
By: Ryan Block http://www.circuitbasics.com/how-to-write-and-run-a-python-program-on-the-raspberry-pi/#comment-1131 Sun, 03 Apr 2016 22:28:56 +0000 http://www.circuitbasics.com/?p=214283#comment-1131 How so? Could you give an example please?

]]>
By: tri http://www.circuitbasics.com/how-to-write-and-run-a-python-program-on-the-raspberry-pi/#comment-1115 Sat, 26 Mar 2016 04:59:31 +0000 http://www.circuitbasics.com/?p=214283#comment-1115 Awesome…

]]>
By: Jessica Ward http://www.circuitbasics.com/how-to-write-and-run-a-python-program-on-the-raspberry-pi/#comment-893 Thu, 07 Jan 2016 08:43:49 +0000 http://www.circuitbasics.com/?p=214283#comment-893 Awesome post about “Python Program on the Raspberry Pi”. But i don’t have much knowledge of python programming. But i like your concept. Surely i will try this on my raspberry pi project. Thanks for sharing.

Regard
Jessica Ward
http://www.raspberrypistarterkits.com

]]>
By: tarun http://www.circuitbasics.com/how-to-write-and-run-a-python-program-on-the-raspberry-pi/#comment-858 Mon, 14 Dec 2015 18:17:33 +0000 http://www.circuitbasics.com/?p=214283#comment-858 Wonderful artical…i started liking this python than c &c++

Short and sweet
Is there any basic book to learn this language..
Plz ….let me know..

]]>
By: Circuit Basics http://www.circuitbasics.com/how-to-write-and-run-a-python-program-on-the-raspberry-pi/#comment-688 Sat, 22 Aug 2015 02:53:07 +0000 http://www.circuitbasics.com/?p=214283#comment-688 Using sudo can break things if you’re not careful with it, but it is fairly harmless in this example.

]]>
By: Circuit Basics http://www.circuitbasics.com/how-to-write-and-run-a-python-program-on-the-raspberry-pi/#comment-685 Sat, 22 Aug 2015 02:48:44 +0000 http://www.circuitbasics.com/?p=214283#comment-685 Good idea! I was planning to do separate article just focusing on libraries. I could go really in depth into that topic so I just wanted to focus on the basics on this one.

]]>
By: Bruno SXS http://www.circuitbasics.com/how-to-write-and-run-a-python-program-on-the-raspberry-pi/#comment-683 Thu, 20 Aug 2015 03:10:00 +0000 http://www.circuitbasics.com/?p=214283#comment-683 Nice article, but you could have gone a step above and explained some of the cool libs focused on the pi.

]]>
By: wtf http://www.circuitbasics.com/how-to-write-and-run-a-python-program-on-the-raspberry-pi/#comment-678 Sat, 15 Aug 2015 19:20:08 +0000 http://www.circuitbasics.com/?p=214283#comment-678 sudo nano is a very bad idea.

]]>