The YouTube video introducing the IDE looks promising, so I am jumping at the opportunity to take a look at it.
Thonny is in the Python Package Index, so it can be easily installed (and installed by user without system admin privileges) using pip. In a previous post I documented installing Python 3.4, which is required to before what follows.
First I want to get pip3. Since it is not yet in the main Centos repository, I installed it with (note: run $ sudo -i and then # exit before running this command in the same terminal emulator so as not to be prompted for a sudo password):
$ curl https://bootstrap.pypa.io/get-pip.py | sudo python3.4I want to install Thonny inside the user's local directory, so I installed it with:
$ pip3 install --user thonnyThis installs the thonny egg in $HOME/.local/lib/python3.4/site-packages (creating the needed lib/python3.4/site-package directory if it is not already there), and installs a shell script to launch it in $HOME/.local/bin. When I tried running thonny from the command prompt, I got an error message: ImportError: No module named 'tkinter'. So I needed to install tkinter:
$ sudo yum install python34-tkinterafter which thonny launched. It complained that it couldn't find rope or jedi, however, so I installed those locally as well:
$ pip3 install --user ropeSince thonny is a GUI IDE, I wanted a GUI launcher for it. To get one I created a Thonny.desktop file based on the one I found here, with the following contents:
$ pip3 install --user jedi
[Desktop Entry]and placed it in my /home/[username]/.local/applications directory (Note: replace [username] with your actual username).
Comment=Python IDE for beginners
[Desktop Action Edit]
Name=Edit with Thonny
Here is a screenshot of Thonny running hello.py:
My next task will be to go through some beginner Python lessons using Thonny to see how it feels.