Video

Raspberry Pi LESSON 14: Installing Vpython (VIsual Python) on the Raspberry Pi



UPDATE JUNE 8, 2023 – Some of you might be having trouble installing vpython according to the instructions in this video. This is due to OS update which causes broken dependencies. If you are having difficulty, try the following steps to install vpython. As of
UPDATE 1/2/2025
If you are struggling with the install, try this:
# Step 1: Flash a fresh Buster Legacy OS on your Raspberry Pi
# Step 2: Open a terminal and run:
cd ~
sudo apt update
sudo apt upgrade -y
# Step 3: Install necessary packages:
sudo apt install libssl-dev python3-venv chromium-browser -y
sudo reboot
# Step 4: Create a virtual environment:
python3 -m venv myenv
# Step 5: Activate the virtual environment:
source myenv/bin/activate
# Step 6: Install `vpython` within the virtual environment:
pip install vpython
NOW, just do the python work in the virtual environment. Always do your vpython work in the virtual environment by the command:
myenv/bin/activate. That will put you in the python virtual environment and everything should work properly in there.
I am hoping this works for you.

Announcing the Most Awesome Raspberry Pi Lessons of All Times! This time we RUMBLE!

In this class series, we will be using the most excellent Sunfounder Ultimate Raspberry Pi kit, available here: (Affiliate Link)
https://amzn.to/3tSk9Mo
or for our UK friends, https://amzn.to/3I5d401

In this lesson I will show how to install vPython, visual python, onto the raspberry pi. We will then create a virtual world LED that changes color in synchronization with the color of the LED in the real world.

If you want to grab those cool little straight jumper wires I am using to keep my breadboard builds neat and clean you can snag a box of them here:
https://amzn.to/36NyfHq

If you guys are interested in the oscilloscope I am using, you can pick one up here (affiliate link):
https://amzn.to/3v13Mhl

You guys get your hardware ordered so you can follow along at home!

You will also need a Raspberry Pi. I suggest the Raspberry Pi 4. If you do not already have one, this is the most suitable gear I could find:

https://amzn.to/3pBMfKm

The Raspberry Pi’s are sort of pricy right now, so you can look on ebay or elsewhere to see if there are any deals. You will need a SD card. If you do not already have one, this is a good one:

https://amzn.to/3KcXTn2

I like using a wireless keyboard and mouse to have fewer wires. You can certainly use your USB keyboard and mouse, but if you want a nice wireless one, this one works on the pi. We demonstrate this by using a button switch to control a LED.

https://amzn.to/36Rv9Sk

You guys can help me out over at Patreon, and that will help me keep my gear updated, and help me keep this quality content coming:

https://www.patreon.com/PaulMcWhorter

[Disclosure of Material Connection: I am a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com. ]

#VPYTHON
#RESISTTHEMETAVERSE
#RASPBERRYPI

source

Authorization
*
*
Password generation