Skip to content

Instantly share code, notes, and snippets.

@mistycheney
Created November 11, 2022 18:16
Show Gist options
  • Save mistycheney/a8872db8d3ae8729b543d74baf826322 to your computer and use it in GitHub Desktop.
Save mistycheney/a8872db8d3ae8729b543d74baf826322 to your computer and use it in GitHub Desktop.
Install PyEnv
# Install pyenv
export PYENV_ROOT=/nfs/intern_data/thsu/.pyenv
export PATH="${PYENV_ROOT}/bin:${PATH}"
curl https://pyenv.run | bash
# Then add in ~/.bashrc:
eval "$(pyenv init --path)"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
# Install python 3.7.9
CONFIGURE_OPTS=--enable-loadable-sqlite-extensions=yes LDFLAGS="-L/data/yuncong/linux_tools/sqlite3/lib -L/data/yuncong/linux_tools/bzip2 -L/data/yuncong/linux_tools/liblzma5_5.2.4-1/usr/lib/x86_64-linux-gnu" CPPFLAGS="-I/data/yuncong/linux_tools/sqlite3/include -I/data/yuncong/linux_tools/bzip2 -I/data/yuncong/linux_tools/liblzma5_5.2.4-1/usr/include" pyenv install 3.7.9
~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment