Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vadimkantorov/3aea2802806ceeea053b7214d3832e1b to your computer and use it in GitHub Desktop.
Save vadimkantorov/3aea2802806ceeea053b7214d3832e1b to your computer and use it in GitHub Desktop.
Install only pip dependencies from pyproject.toml (e.g. from from https://github.com/augustepoiroux/LeanInteract )
# https://github.com/pypa/pip/issues/11440
# https://github.com/pypa/pip/issues/7822
# https://stackoverflow.com/a/79598932/445810
# tomllib is available starting from python --version >= 3.11
python -m pip install $(python -c 'import tomllib;print(*tomllib.load(open("pyproject.toml","rb"))["project"]["dependencies"])') # --user --break-system-packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment