staradult.blogg.se

Which version of python does thonny use
Which version of python does thonny use






which version of python does thonny use

If successful, you will end up with output similar to this. Sudo update-alternatives -install /usr/bin/python python /usr/bin/python3.5 2 Sudo update-alternatives -install /usr/bin/python python /usr/bin/python2.7 1 Notice we use only the first 2 digits of the version (i.e. Make sure to substitute the versions of Python in the command below with the versions of your system, which you have noted in the first step. Update the alternatives table to include both Python 2.7.x and Python 3.5.x.First, we will list the available alternatives (most probably, you will get an empty list as seen in the screenshot below) We will use the update-alternatives command.

which version of python does thonny use

Note the versions available (first 2 digits only)

  • First of all, check which versions of Python your system has.
  • We are taking only the part useful for our makerspace activities ('Change Python version System-wide'), click the link to see more options.

    #Which version of python does thonny use how to#

    This guide is based and inspired from the following article by LinuxConfig: How to change from default to alternative Python version on Debian Linux. Until this changes, use the following recipe to get Python setup the way you want to. There are system dependencies which need Python 2 as well. You might be asking, whether it's maybe possible to have 1 version only? (and uninstall the previous version). This is annoying - this article tells you how to make Python 3 your default Python (so you can run: 'python mycode.py'). Now if you you want to develop in Python 3 (which we recommend), you need to specify the version of Python you are using (by running: 'python3 mycode.py'). The Pi (Raspbian) comes pre-installed with 2 versions of Python. Configure Default Python version on your Pi








    Which version of python does thonny use