SDB:Python

Jump to: navigation, search

The Python Programming Language

Python® is a dynamic object-oriented programming language that can be used for many kinds of software development. It offers strong support for integration with other languages and tools, comes with extensive standard libraries, and can be learned in a few days. Many Python programmers report substantial productivity gains and feel the language encourages the development of higher quality, more maintainable code.

Python runs on Windows, Linux/Unix, Mac OS X, OS/2, Amiga, Palm Handhelds, and Nokia mobile phones. Python has also been ported to the Java and .NET virtual machines.

Python is distributed under an OSI-approved open source license that makes it free to use, even for commercial products.

The Python Software Foundation (PSF) holds and protects the intellectual property rights behind Python, underwrites the PyCon conference, and funds grants and other projects in the Python community.

Importance

Python is important because of its flexibility. It can be used to develop almost anything, making it one of the most used languages. Because of this, most companies require knowledge of Python.

Installing software

While the openSUSE repositories provide python packages, it is not recommended using them for installing pure-python applications. This is because each Python apps depend on specific versions of Python packages. For this reason, installing multiple apps system-wide will likely generate incompabilities among apps.

The recommended way of installing apps is using pipx, which install each application in its own environment:

sudo zypper in python311-pipx

You can use it like:

pipx install aichat

For using pipx, you don't need sudo, as it works only in your home. This also means other users won't have your pipx-installed applications by default (read the pipx documentation for achieving this).

For specific apps that depend on complex packages that are distributed without compiled binaries, installing with pipx may fail or requires a lot of computational resources. In this case, you can still install the specific dependency from the openSUSE repo and instruct pipx to use that:

sudo zypper in python311-wxPython
pipx install --system-site-packages <yourappusing-wxPython>

See Also

Opensuse programming information

External Links