Skip to content

Instantly share code, notes, and snippets.

@chewwt
Created June 7, 2022 08:00
Show Gist options
  • Save chewwt/c65a05959cf7dbb727ff3b76d8695be8 to your computer and use it in GitHub Desktop.
Save chewwt/c65a05959cf7dbb727ff3b76d8695be8 to your computer and use it in GitHub Desktop.
pyenv offline setup

Pyenv Offline Setup

  1. Download and transfer pyenv
  2. Extract pyenv-x.x.x.tar.gz into ~/.pyenv
  3. Add into ~/.zshrc and source
    export PATH=/home/user/.pyenv/bin:$PATH
    eval "$(pyenv init -)"
    eval "$(pyenv virtualenv-init -)"
  4. Download and transfer desired python-3.x.x
  5. Place Python-3.x.x.tar.zx file in ~/.pyenv/cache (Don't untar)
  6. Run pyenv install 3.x.x
@MSK61
Copy link

MSK61 commented May 29, 2025

@tomercagan pyevn-virtualenv is available here. You can grab a tarball and extract it as explained in its README file(simply by extracting the archive under $(pyenv root)/plugins/.
Alternatively it should also be possible to get rid of the pyenv virtualenv-init step entirely, as it isn't mentioned in the official pyenv shell integration steps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment