githubEdit

codePython

Python record

1. Development Environment

Install

# centos
yum install -y make gcc zlib-devel bzip2-devel openssl-devel ncurses-devel libffi-devel

# ubuntu
apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev wget libbz2-dev libsqlite3-dev

# build
./configure --prefix=/usr/local/python3_11_1 --enable-loadable-sqlite-extensions --enable-shared --enable-optimizations
# Common build parameters
--enable-shared                         # Enable shared library support, allowing other programs to link against the Python library
--enable-optimizations                  # Enable build optimizations
--enable-ipv6                           # Enable IPv6 support
--enable-loadable-sqlite-extensions     # Allow dynamically loading SQLite extensions
--with-system-expat                     # Use the system expat library
--with-system-ffi                       # Use the system ffi library
--with-openssl=/usr/local/openssl1.11u  # Specify the path to the OpenSSL library
--with-zlib=/usr/local/zlib             # Specify the path to the zlib library
--with-bz2=/usr/local/bz2               # Specify the path to the bzip2 library
--with-tcltk=/usr/local/tcltk           # Specify the path to the Tcl/Tk library

# install
make && make install

Pycharm

2. ProjectManage

pip

Poetry

A dependency management and packaging tool for Python. It allows declaring project libraries and their constraints via pyproject.toml and manages virtual environments automatically.

Install

Project Management

Dependency Management

Virtual Environment

Running Commands

Configuration

uv

An extremely fast Python package and project manager, written in Rust. It is a drop-in replacement for pip, pip-tools, pipx, poetry, pyenv, and virtualenv — all in a single tool.

Install

Python Management

Project Management

Virtualenv Management

pip-Compatible Interface

Scripts

Tools (uvx / uv tool)

uvx is an alias for uv tool run. It runs a CLI tool in a temporary isolated environment — no global install needed. Use --from when the package name differs from the command name.

Reference:

Last updated