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

Python • Re: How to get Python to use a custom library path

$
0
0
Thanks for the prompt reply!

1. A virtual environment isn't going to happen in this context because it would totally break the entire robot ecosystem.

Thanks!
I just looked a their python code here: https://github.com/DexterInd/GoPiGo3/tr ... are/Python

There is nothing in there that keeps you from using a virtual env. They just providing you with a bunch of classes build on top of pigpio

You can even run all this stuff in a docker container if you wanted to.
And spidev for the spi rather than the pigpio spi implementation.


Unless there is other stuff being used and not just this program.

Could check in the .egg file too (it is just a zip file, though largely redundant iirc because python use wheels now).

Though this Python2 confused me in the first post in the paths?
Yet trying to use Python3 & Thonny (which is python3)

/usr/local/lib/python2.7/dist-packages/gopigo3-1.2.0-py2.7.egg
/usr/local/lib/python2.7/dist-packages/gopigo3-1.2.0-py2.7.egg

Statistics: Posted by bensimmo — Thu Jul 04, 2024 7:47 am



Viewing all articles
Browse latest Browse all 5502

Trending Articles