thonny in a virtual python environment

677 views
Skip to first unread message

Dirk De Muynck

unread,
Feb 14, 2018, 6:32:17 AM2/14/18
to thonny

How can I use in a virtual python environment on raspberry pi?
For idle, I switch to the virtual environment and then I use python -m idlelib
How can i do this with thonny ?
thanks

Aivar Annamaa

unread,
Feb 14, 2018, 6:39:09 AM2/14/18
to thonny
Hi Dirk,

In principle you should go to "Tools => Options => Interpreter" and select the interpreter in the virtual environment. But in current version there is a bug which writes wrong path into the config file.

As a workaround you can open ~/.thonny/configuration.ini, find [run] section and set

backend_configuration = Python (/path/to/your/virtual/environment/bin/python)

best regards,
Aivar
Reply all
Reply to author
Forward
0 new messages