I set up a python project using “Qt for Python using QML”. I added “PySide2” to the requirements.txt file. When i attempt to build I receive “Could not find a version that satisfies the requirement pySide2”. Is there a solution to this? Thanks
In general if the package you’re trying to install can be provided by either pip or apt I would almost always suggest installing it via apt. The pip package manager can be very finicky with versioning as you see here.
We have a QML PySide2 based sample application here: torizon-samples/python-qml at bullseye · toradex/torizon-samples · GitHub
Notice in the Dockerfile how we choose to install the various
python3-pyside2* packages via apt. In our Visual Studio Code extension this can be done via the