- Download and transfer pyenv
- Extract
pyenv-x.x.x.tar.gz
into~/.pyenv
- Add into
~/.zshrc
and 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.zx
file 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
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$USER
environment variablepyenv virtualenv-init
is 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/cache
does not exist by default - create it withmkdir ~/.pyenv/cache
.