![]() ![]() 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 ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |