I had selected the virtual environment at the bottom right corner of the Thonny editor.
What, exactly, do you see as the name of the Python3 interpreter at the bottom right of the screen, after selecting the python virtual environment.
In line with my previous demonstrations, mine shows "Local Python 3 * /home/david/Support/RDS/pa1010/bin/python3"
And after using Thonny's RED stop/restart button the heading at the top of the Shell Windows displays
" Python 3.11.2 (/home/david/Support/RDS/pa1010/bin/python3) "
Running the same test script as previously results in -
Code:
>>> %Run rds_gps_test.pyImported pa1010d module withou error.>>>
There are no Pi or Python police controlling how you choose to work. You are free to install and use the IDLE IDE if you prefer. Raspberry Pi have chosen not to pre-install it or recommend it, that's all.(I actually preferred IDLE to Thonny)
But I suggest you check carefully how IDLE might interact - or not - with your Python Virtual Environment, before creating another round of frustration for yourself.
Statistics: Posted by B.Goode — Thu Nov 28, 2024 3:00 pm