12345
sudo apt install cgroup-toolssudo cgcreate -g memory:/pip_memory_limitsudo echo 60G | sudo tee /sys/fs/cgroup/pip_memory_limit/memory.max# 实操sudo cgexec -g memory:pip_memory_limit pip install <package_name>