- Download and transfer pyenv
- Extract
pyenv-x.x.x.tar.gzinto~/.pyenv - Add into
~/.zshrcand sourceexport PATH=/home/user/.pyenv/bin:$PATH eval "$(pyenv init -)" eval "$(pyenv virtualenv-init -)"
- Download and transfer desired python-3.x.x
- Place
Python-3.x.x.tar.zxfile in~/.pyenv/cache(Don't untar) - Run
pyenv install 3.x.x
Created
June 7, 2022 08:00
-
-
Save chewwt/c65a05959cf7dbb727ff3b76d8695be8 to your computer and use it in GitHub Desktop.
pyenv offline setup
@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
Thanks for that!
A few notes to others that come here
export) - you should change it to your current user or can use$USERenvironment variablepyenv virtualenv-initis a plugin and for latest version today - 2.4.19 - is not installed by default. To use it you will need to install it (not sure how to do it, specifically offline)~/.zshrc. For other shells, change the relevant file (e.g.~/.bashrc)~/.pyenv/cachedoes not exist by default - create it withmkdir ~/.pyenv/cache.