Skip to content

Instantly share code, notes, and snippets.

@ftnext
Last active June 8, 2024 16:21
Show Gist options
  • Save ftnext/21e78aec985060a4c485a5bc6c553258 to your computer and use it in GitHub Desktop.
Save ftnext/21e78aec985060a4c485a5bc6c553258 to your computer and use it in GitHub Desktop.
% mkdir -p practice/bin
% ln -s $HOME/.pyenv/versions/3.11.8/bin/python practice/bin/python
% mkdir -p practice/lib/python3.11/site-packages
% echo "home = $HOME/.pyenv/versions/3.11.8/bin" > practice/pyvenv.cfg
% echo 'include-system-site-packages = false' >> practice/pyvenv.cfg
% echo 'version = 3.11.8' >> practice/pyvenv.cfg
% echo "executable = $HOME/.pyenv/versions/3.11.8/bin/python3.11" >> practice/pyvenv.cfg
% echo "command = $HOME/.pyenv/versions/3.11.8/bin/python -m venv $PWD/practice" >> practice/pyvenv.cfg
% practice/bin/python -m ensurepip --upgrade
% practice/bin/python -m pip list
Package Version
---------- -------
pip 24.0
setuptools 65.5.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment