tips for folks getting started.

Don't use the system-level python as that can update and break dependencies. E.g. Arch uses 3.13 if you update and Tensorflow can't go above 3.12.

Use pyenv to do version management per project. github.com/pyenv/pyenv

Don't install pip dependencies globally. Use virtualenv to set up dependencies per project. virtualenv.pypa.io/

Python versioning is rough out of the box and these tips can save you some pain.

@mauve this is a great tip! I would add that when I teach beginners that are not familiar with the command line, I recommend they try #ThonnyIDE thonny.org, a nice code editor for #Python that also provides a simple way of having isolated virtual environments where you can experiment and install stuff without fear of breaking your system.

Follow

@villares Neat. For sandboxes I like to use JupyterLite in browsers to skip having to install anything natively.

github.com/jupyterlite/jupyter

· · Web · 1 · 1 · 4
Sign in to participate in the conversation
Mauvestodon

Escape ship from centralized social media run by Mauve.