Skip to main content

Documentation Index

Fetch the complete documentation index at: https://base.bangwu.me/llms.txt

Use this file to discover all available pages before exploring further.

Python package managers and virtual environments——V2EX There are far too many Python environment management tools. python-tools
Image source: https://alpopkes.com/posts/python/packaging_tools/

Python version management

pyenv, pipenv

Python package management

pip, uv, pdm

Rye configuration

VS Code cannot detect the interpreter path

{
    "python.defaultInterpreterPath": ".\\.venv\\Scripts\\python.exe"
}
rye config --set proxy.http=http://127.0.0.1:7890
rye config --set proxy.https=http://127.0.0.1:7890
Enable global shims:
rye config --set-bool behavior.global-python=true
Configure a PyPI mirror in config.toml:
# Rye config.toml
[[sources]]
name = "default"
url = "https://pypi.org/simple/"
Set up Jupyter:
rye add ipykernel

My configuration

[default]
toolchain = "cpython@3.13.2"
license = "MIT"
author = "bangwu <i@bangwu.top>"

[proxy]
https = "http://127.0.0.1:10808"
http = "http://127.0.0.1:10808"

[behavior]
global-python = true
autosync = true
use-uv = true

[[sources]]
name = "default"
url = "https://pypi.tuna.tsinghua.edu.cn/simple/"

Start a project

rye pin 3.x
rye init // 或者 rye init -p cpython@3.x [project name]
rye sync
rye add [package]
Last modified on April 17, 2026