标签:share pre 手动安装 red 文章 python local shared bash
cd ~ git clone git://github.com/yyuu/pyenv.git .pyenv echo ‘export PYENV_ROOT="$HOME/.pyenv"‘ >> ~/.bashrc echo ‘export PATH="$PYENV_ROOT/bin:$PATH"‘ >> ~/.bashrc echo ‘eval "$(pyenv init -)"‘ >> ~/.bashrc source ~/.bashrc
使用pyenv安装python
PYENV_ROOT="$(pwd)/pyenv"
export PYENV_ROOT
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
pyenv local 3.6.3 ||env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.6.3 && pyenv local 3.6.3 (PYTHON_CONFIGURE_OPTS="--enable-shared"加上以生成动态链接库)
参考文章:
标签:share pre 手动安装 red 文章 python local shared bash
原文地址:https://www.cnblogs.com/276815076/p/9528935.html