Documentation for working with Python on FreeBSD is a tad thin on the ground and I'm baffled. I had assumed that all OSs handled Python and its libraries the same way... install libraries using pip, set up virtual environments using venv... and that a Python script written on Windows 10 (what I'm used to) would just run on FreeBSD if I had the correct libraries installed (in this case, PySide6) by pip.
Enough backstory.
I found and installed pyenv, but again, no mention of FreeBSD in its docs. Their passing mention of UNIX as part of the Mac instructions just seems like a red herring. And I have no idea if I'm using it correctly. I used it to install Python 3.11.10, but that's a far as I got. Does it just work once installed (with shims) or do I need to invoke it the way venv is invoked?
I found the package for py311-pyside6 and installed that using pkg, but there's something missing because when I run a Python script that imports PySide6 modules, it says there are no such modules. Is this a PATH issue or (as suggested by the chat bots) a PYTHONPATH issue? BTW, I noticed that there is no default PYTHONPATH, at least not on my machine. Does this package just contain pyside libraries or the bindings as well? Or does FreeBSD take a completely different approach to interfacing to PySide6 from Python?
If anyone can shed light on how to:
- set up a Python development environment with virtual machines,
- install and configure Python libraries so the scripts I'm running can find them, and
- share any information about how to use pyenv on FreeBSD...
I'd be ever so grateful.
Enough backstory.
I found and installed pyenv, but again, no mention of FreeBSD in its docs. Their passing mention of UNIX as part of the Mac instructions just seems like a red herring. And I have no idea if I'm using it correctly. I used it to install Python 3.11.10, but that's a far as I got. Does it just work once installed (with shims) or do I need to invoke it the way venv is invoked?
I found the package for py311-pyside6 and installed that using pkg, but there's something missing because when I run a Python script that imports PySide6 modules, it says there are no such modules. Is this a PATH issue or (as suggested by the chat bots) a PYTHONPATH issue? BTW, I noticed that there is no default PYTHONPATH, at least not on my machine. Does this package just contain pyside libraries or the bindings as well? Or does FreeBSD take a completely different approach to interfacing to PySide6 from Python?
If anyone can shed light on how to:
- set up a Python development environment with virtual machines,
- install and configure Python libraries so the scripts I'm running can find them, and
- share any information about how to use pyenv on FreeBSD...
I'd be ever so grateful.