Python
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 installPycharm
2. ProjectManage
pip
Poetry
Install
Project Management
Dependency Management
Virtual Environment
Running Commands
Configuration
uv
Install
Python Management
Project Management
Virtualenv Management
pip-Compatible Interface
Scripts
Tools (uvx / uv tool)
Last updated