Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 1264

Python • Re: Virtual environment? Virtual machine? Which should I use?

$
0
0
FWIW, if your PI is a single project platform and you have no plans to make it portable then just use Python on Buster natively. This is what I personally do BUT I make sure now I don't use sudo pip on any Python module installs.

I am not sure what you mean by a "single project platform".

The problem is that later operating systems, (Bullseye, Bookworm), don't support the necessary dependencies, (they no longer exist in the repo's), have incompatible versions, or require things that conflict with other things. (Like the camera libraries, etc.)

What I would like to do is create a "something", (I'm not sure what this "something" is yet), that I can "package" that will allow others who want to use the robot with later operating systems to just "plop" this in place and you have an instant GoPiGo robot without burning brown rice, sacrificing small rodents, or making oblations to The Computer Gods, regardless of the target OS.

Ideally it would work on any Debian-derived system (like Ubuntu, etc.) that runs on the Pi.

I know in broad general terms what I want and I have a vague idea how to do it, but everything I think of is incredibly clumsy, complicated, or requires a Ph.D. in rocket science.

Example: Docker containers.
Everything I've found so far reads like it was written by a Docker expert for other Docker experts and really doesn't tell me anything useful that I couldn't find reading Egyptian Hieroglyphics. (A good article on Docker containers that's not written for rocket scientists would be excellent!)

Venv's look good, but I don't know if I will obtain the required degree of modularity. (Can it be made "drag-and-plop" installable?) Most venv discussions say emphatically NOT to export the venv's to a "production" system, as if they are strictly a development hack that you can't trust with your back turned.

So, I'm confused.

The primary requirements are that the finished product should work wherever it's installed and require little to no skill to install it. ( i.e. A school's Phys-Ed teacher who struggles with a smartphone, and is tossed the fat plum of teaching a robotics course by The Powers That Be - and yes, that's happened in the past - can successfully install this with a minimum of help.)

So, drawing on the collective wisdom of all of you, what would you choose and why?

Thanks!

Statistics: Posted by jharris1993 — Mon Sep 09, 2024 1:50 pm



Viewing all articles
Browse latest Browse all 1264

Trending Articles