Pycharm

It’s quite important to use an integrated development environment IDE for writing code. An IDE will assist you in lots of ways!

When it comes to “What is the best IDE for writing Python code?” question, I’m saying there are two good options, with a clear favourite.

There is Microsoft’s Visual Studio Code, VSCode, or even “code” for short. This is popular with a ton of plugins (including the official FastAPI extension), but bottom line, I find PyCharm much nicer!

JetBrains do a great job of building IDEs for various languages, and PyCharm is their Python IDE. There used to be two editions, a free Community edition and a paid Professional one. JetBrains has since merged them into a single PyCharm, with the core features free and extras, such as web framework and database tools, in a Pro subscription.

All the code written throughout this documentation was originally done using the free Community edition, and while I do pay for the Pro version for working on my own projects, it’s not really necessary.

Installing these tools on a Linux desktop is best done via their Toolbox App, because it integrates the applications more seamlessly, and keeps them up to date.

Download the .tar.gz archive, extract it, and run the toolbox, for example (your version number will differ):

tar -xvf jetbrains-toolbox-*.tar.gz
cd jetbrains-toolbox-*/
./jetbrains-toolbox

Using the toolbox, install PyCharm:

And then you’ll find PyCharm installed and nicely integrated into your desktop, ready to launch: