手动安装
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"加上以生成动态链接库)
参考文章:
原文地址:https://www.cnblogs.com/276815076/p/9528935.html
时间: 2024-10-25 19:08:27