0%

非 sudoer 用户安装 python 包

安装

1
pip install --user <package-name>

生效

~/.bashrc添加以下配置

1
2
export PATH=~/.local/bin:$PATH
export PYTHONPATH=$HOME/.local/lib/<python-version>/site-packages

source ~/.bashrc执行生效