Python
시스템 기본 python 버전은 여러 툴들이 버전 의존성이 있기 때문에 임의로 기존 python 버전을 변경하거나, 바꾸면 시스템 오류가 날 수 있습니다.
추가 패키지 형태로 설치하고, 필요한 버전을 별도로 호출해서 사용하는 방법을 사용하시길 바랍니다.
설치
$ sudo dnf install python3
$ sudo dnf install python3.11
$ sudo dnf install python3.12
추가 패키지 설치
$ sudo dnf install python3-pip
$ sudo dnf install python3.11-pip
$ sudo dnf install python3.12-pip
버전별 사용방법
$ python3
$ python3 -m pip install package
$ pip3 install package
$ python3.11
$ python3.11 -m pip install
$ pip3.11 install package
$ python3.12
$ python3.12 -m pip install
$ pip3.12 install package
기타
각 버전에 맞는 패키지들은 아래와 같은 방법으로 검색할 수 있습니다.
$ sudo dnf search python3.12
Last metadata expiration check: 0:30:28 ago on Fri 13 Dec 2024 02:03:15 AM KST.
======================= Name Exactly Matched: python3.12 =======================
python3.12.x86_64 : Version 3.12 of the Python interpreter
python3.12.i686 : Version 3.12 of the Python interpreter
====================== Name & Summary Matched: python3.12 ======================
python3.12-PyMySQL+rsa.noarch : Metapackage for python3.12-PyMySQL: rsa extras
=========================== Name Matched: python3.12 ===========================
python3.12-Cython.x86_64 : Language for writing Python extension modules
python3.12-PyMySQL.noarch : Pure-Python MySQL client library
python3.12-cffi.x86_64 : Foreign Function Interface for Python to call C code
python3.12-charset-normalizer.noarch : The Real First Universal Charset Detector
python3.12-cryptography.x86_64 : PyCA's cryptography library
python3.12-debug.i686 : Debug version of the Python runtime
python3.12-debug.x86_64 : Debug version of the Python runtime
python3.12-devel.i686 : Libraries and header files needed for Python development
python3.12-devel.x86_64 : Libraries and header files needed for Python
: development
python3.12-flit-core.noarch : PEP 517 build backend for packages using Flit
python3.12-idle.i686 : A basic graphical development environment for Python
python3.12-idle.x86_64 : A basic graphical development environment for Python
python3.12-idna.noarch : Internationalized Domain Names in Applications (IDNA)
python3.12-iniconfig.noarch : Brain-dead simple parsing of ini files
python3.12-libs.x86_64 : Python runtime libraries
python3.12-libs.i686 : Python runtime libraries
python3.12-lxml.x86_64 : XML processing library combining libxml2/libxslt with
: the ElementTree API
python3.12-mod_wsgi.x86_64 : A WSGI interface for Python web applications in
: Apache
python3.12-numpy.x86_64 : A fast multidimensional array facility for Python
python3.12-numpy-f2py.x86_64 : f2py for numpy
python3.12-packaging.noarch : Core utilities for Python packages
python3.12-pip.noarch : A tool for installing and managing Python packages
python3.12-pip-wheel.noarch : The pip wheel
python3.12-pluggy.noarch : The plugin manager stripped of pytest specific
: details
python3.12-ply.noarch : Python Lex-Yacc
python3.12-psycopg2.x86_64 : A PostgreSQL database adapter for Python
python3.12-psycopg2-debug.x86_64 : A PostgreSQL database adapter for Python 3.12
: (debug build)
python3.12-psycopg2-tests.x86_64 : A testsuite for A PostgreSQL database adapter
: for Python 3.12
python3.12-pybind11.x86_64 : Seamless operability between C++11 and Python
python3.12-pybind11-devel.i686 : Development headers for pybind11
python3.12-pybind11-devel.x86_64 : Development headers for pybind11
python3.12-pycparser.noarch : C parser and AST generator written in Python
python3.12-pytest.noarch : Simple powerful testing with Python
python3.12-pyyaml.x86_64 : YAML parser and emitter for Python
python3.12-requests.noarch : HTTP library, written in Python, for human beings
python3.12-rpm.x86_64 : Python 3.12 bindings for apps which will manipulate RPM
: packages
python3.12-scipy.x86_64 : Scientific Tools for Python
python3.12-scipy-tests.x86_64 : Scientific Tools for Python - test files
python3.12-semantic_version.noarch : Library implementing the 'SemVer' scheme
python3.12-setuptools.noarch : Easily build and distribute Python packages
python3.12-setuptools-rust.noarch : Setuptools Rust extension plugin
python3.12-setuptools-wheel.noarch : The setuptools wheel
python3.12-test.i686 : The self-test suite for the main python3 package
python3.12-test.x86_64 : The self-test suite for the main python3 package
python3.12-tkinter.i686 : A GUI toolkit for Python
python3.12-tkinter.x86_64 : A GUI toolkit for Python
python3.12-urllib3.noarch : HTTP library with thread-safe connection pooling,
: file post, and more
python3.12-uwsgidecorators.x86_64 : Python 3.12 decorators providing access to
: the uwsgi API
python3.12-wheel.noarch : Built-package format for Python
python3.12-wheel-wheel.noarch : The Python wheel module packaged as a wheel