Coding python on linux

10 Best Python IDEs to Use in 2023

Python is a general-purpose programming language for building anything; from backend web development, data analysis, and artificial intelligence to scientific computing. It can also be used for developing productivity software, games, desktop apps, and beyond.

It’s easy to learn and has a clean syntax and indentation structure. And an IDE (Integrated Development Environment) can, to some extent, determine one’s programming experience when it comes to learning or developing using any language.

There are many Python IDEs out there, in this article, we will list the Best Python IDEs for Linux. Whether you’re new to programming or an experienced developer, we have you covered.

1. PyCharm

PyCharm is a powerful, cross-platform, highly customizable, and pluggable Python IDE, which integrates all development tools in one place. It is feature-rich and comes with two variants – a community (free and open-source) as well as a professional edition.

It provides smart code completion, and code inspection functionalities, and has remarkable error highlighting and quick fixes. It also ships with automated code refactoring and excellent navigation capabilities.

PyCharm Python IDE

Has built-in developer tools such as an integrated debugger and test runner; a Python profiler; a built-in terminal; integration with major VCS and built-in database tools and much more. It is very popular among Python programmers and designed for professional developers.

2. Wing Python IDE

Wing Python IDE is a highly customizable and flexible, professional Python IDE with a powerful debugger and intelligent editor. It enables interactive Python development in a fast, accurate, and fun manner.

Some of its well know features include extremely powerful debugging capabilities, code navigation, integrated unit testing, remote development, and so much more. If you love using Vim, then Wing amazingly binds with the Vim editor.

Wing Python IDE

It has rich integration with App Engine, Django, PyQt, Flask, Vagrant, and beyond. It supports project management and version control with Git, Mercurial, Bazaar, Subversion, and many others. It is also becoming popular among Python developers, and many users now prefer it to PyCharm.

Читайте также:  Object fit css grid

3. Eric Python IDE

Eric is a featured-rich Python IDE, written in Python. It is based on the cross-platform Qt UI toolkit, integrated with the highly flexible Scintilla editor control. It has an unlimited number of editors.

It provides a configurable window layout, configurable syntax highlighting, source code auto-completion, source code call tips, source code folding, brace matching, and error highlighting, and offers advanced search functionality including project-wide search and replace.

Eric Python IDE

Eric has an integrated class browser and web browser, an integrated version control interface for Mercurial, Subversion, and Git repositories as core plug-ins and so much more. One of its most important features, which lacks in many Python IDEs is an integrated source code documentation system.

4. PyDev For Eclipse

PyDev is an open-source, feature-rich Python IDE for Eclipse. It supports Django integration, code completion, code completion with auto import, type hinting, and code analysis.

Pydev Python IDE

It offers refactoring, a debugger, a remote debugger, a tokens browser, an interactive console, unit test integration, code coverage, and PyLint integration. It allows you to find references using the (Ctrl+Shift+G) shortcut keys. You can use it for Python, Jython, and IronPython development.

5. Spyders Scientific Python IDE

Spyder is a scientific Python IDE with many features for research, data analysis, and scientific package creation. It ships with a multi-language editor with a function/class browser, code analysis features (with support for pyflakes and pylint), code completion, horizontal and vertical splitting as well as a goto definition feature.

Spyder Python IDE

It has an interactive console, documentation viewer, variable explorer, and file explorer. Spyder allows for searching queries across multiple files in your project, with complete support for regular expressions.

6. Pyzo Python IDE

Pyzo is a simple, free, and open-source IDE for Python. It employs conda, an OS-agnostic, system-level binary package manager and ecosystem. However, it works without any Python interpreter. Its main design goal is to be simple and highly interactive.

Pyzo Python IDE

It is made up of an editor, a shell, and an assortment of useful standard tools such as a file browser, source structure, logger, and an interactive help feature to help the programmer in various ways. It offers full Unicode support in both editor and shell. And you can choose between different Qt themes to use.

7. Thonny Python IDE

Thonny is an open-source Python IDE meant for beginners who have no prior knowledge in Python learning and development. It comes with Python 3.10 and has very basic and simple features that can easily understand by new developers.

The basic features include a simple debugger with F5, F6, and F7 function keys for debugging code, offers an option to view how Python evaluates your expressions, highlights syntax errors, auto code completion support, and a Pip package manager to install 3rd party packages.

Читайте также:  Python binary files read write

Thonny Python IDE

8. IDLE Python IDE

IDLE is an open-source and popular Python’s Integrated Development and Learning Environment for beginner-level programmers who want to learn Python development programming with no prior experience.

IDLE is cross-platform and comes with basic features that enable you to edit, run, and debug your Python projects in a simple graphical user interface. IDLE is coded in 100% Python program and it uses the Tkinter GUI toolkit to build its windows.

IDLE Python IDE

9. GNU Emacs For Python Programming

Emacs is a free, extensible, customizable, and cross-platform text editor with the out-of-the-box Python support via “python-mode”. If you’re an Emacs fan, you can build a complete IDE for Python Programming by integrating the packages listed in Python Programming In Emacs guide in the Emacs wiki.

Emacs Editor

10. Vim Editor

Vim is a popular, powerful, configurable, and above all extensible text editor. It is fast and is often used as a Python development environment by many Linux users. To configure it as an IDE, you can start by using Python-mode, a plugin for developing Python applications in Vim.

Vim Editor

VIM can be a pain to configure especially for new users, but once you get through it, you will have a perfect match (i mean Vim and Python). There are several extensions that you can use to set up a full-fledged, professional IDE for Python. Refer to the Vim documentation and Python wiki for more information.

Summary

An IDE can make the difference between a good and bad programming experience. In this article, we shared the Best Python IDEs for Linux. Have we missed any, let us know via the comment form below. Also, let us know which IDE you are using currently for Python programming.

Источник

2. Using Python on Unix platforms¶

2.1. Getting and installing the latest version of Python¶

2.1.1. On Linux¶

Python comes preinstalled on most Linux distributions, and is available as a package on all others. However there are certain features you might want to use that are not available on your distro’s package. You can easily compile the latest version of Python from source.

In the event that Python doesn’t come preinstalled and isn’t in the repositories as well, you can easily make packages for your own distro. Have a look at the following links:

2.1.2. On FreeBSD and OpenBSD¶

pkg_add -r python pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/4.2/packages//python-.tgz
pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/4.2/packages/i386/python-2.5.1p2.tgz

2.1.3. On OpenSolaris¶

You can get Python from OpenCSW. Various versions of Python are available and can be installed with e.g. pkgutil -i python27 .

Читайте также:  Как выбрать java в тлаунчер

2.2. Building Python¶

If you want to compile CPython yourself, first thing you should do is get the source. You can download either the latest release’s source or just grab a fresh clone. (If you want to contribute patches, you will need a clone.)

The build process consists of the usual commands:

./configure make make install

Configuration options and caveats for specific Unix platforms are extensively documented in the README.rst file in the root of the Python source tree.

make install can overwrite or masquerade the python3 binary. make altinstall is therefore recommended instead of make install since it only installs exec_prefix /bin/python version .

These are subject to difference depending on local installation conventions; prefix and exec_prefix are installation-dependent and should be interpreted as for GNU software; they may be the same.

For example, on most Linux systems, the default for both is /usr .

Recommended location of the interpreter.

prefix /lib/python version , exec_prefix /lib/python version

Recommended locations of the directories containing the standard modules.

prefix /include/python version , exec_prefix /include/python version

Recommended locations of the directories containing the include files needed for developing Python extensions and embedding the interpreter.

2.4. Miscellaneous¶

To easily use Python scripts on Unix, you need to make them executable, e.g. with

and put an appropriate Shebang line at the top of the script. A good choice is usually

which searches for the Python interpreter in the whole PATH . However, some Unices may not have the env command, so you may need to hardcode /usr/bin/python3 as the interpreter path.

To use shell commands in your Python scripts, look at the subprocess module.

2.5. Custom OpenSSL¶

  1. To use your vendor’s OpenSSL configuration and system trust store, locate the directory with openssl.cnf file or symlink in /etc . On most distribution the file is either in /etc/ssl or /etc/pki/tls . The directory should also contain a cert.pem file and/or a certs directory.
$ find /etc/ -name openssl.cnf -printf "%h\n" /etc/ssl 
$ curl -O https://www.openssl.org/source/openssl-VERSION.tar.gz $ tar xzf openssl-VERSION $ pushd openssl-VERSION $ ./config \ --prefix=/usr/local/custom-openssl \ --libdir=lib \ --openssldir=/etc/ssl $ make -j1 depend $ make -j8 $ make install_sw $ popd 
$ pushd python-3.x.x $ ./configure -C \ --with-openssl=/usr/local/custom-openssl \ --with-openssl-rpath=auto \ --prefix=/usr/local/python-3.x.x $ make -j8 $ make altinstall

Patch releases of OpenSSL have a backwards compatible ABI. You don’t need to recompile Python to update OpenSSL. It’s sufficient to replace the custom OpenSSL installation with a newer version.

Источник

Оцените статью