I am running the latest Debian version (202409) and have successfully installed the VisionFive.gpio library with earlier versions but running into problems since the upgrade.
I am following the application note Preparing Software
Have successfully installed pip and also the two libraries as per the instruction ‘apt install libxml2-dev libxslt-dev’ (although I did get a warning that 'Note, selecting ‘libxslt1-dev’ instead of ‘libxslt-dev’
The next step is where I run into trouble. When I run ‘python3 -m pip install requests wget bs4’ I receive a message as follows.
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.
See /usr/share/doc/python3.11/README.venv for more information.
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
I then ran ‘python3 -m pip install requests wget bs4’ again and added ‘–break-system-packages’ and it appears to have worked.
Then, I created the Install_VisionFive_gpio.py script in nano but when I run the command ‘python3 Install_VisionFive_gpio.py’ I receive the environment is externally managed error again and adding the ‘–break-system-package’ to the end of the command does not help.
Is there something I need to change in the Install_VisionFive_gpio.py script that I need to change?