Skip to content

Instantly share code, notes, and snippets.

@tomerun
Created February 26, 2024 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomerun/20a5d20d1e984c3676c78f6c690b0146 to your computer and use it in GitHub Desktop.
Save tomerun/20a5d20d1e984c3676c78f6c690b0146 to your computer and use it in GitHub Desktop.
$ docker run --rm -it python:3.12.2-slim-bullseye bash
root@909f0138a0f1:/# python -c "import sys; print(sys.path)"
['', '/usr/local/lib/python312.zip', '/usr/local/lib/python3.12', '/usr/local/lib/python3.12/lib-dynload', '/usr/local/lib/python3.12/site-packages']
root@909f0138a0f1:/# pip install numpy --user
(略)
root@909f0138a0f1:/# python -c "import sys; print(sys.path)"
['', '/usr/local/lib/python312.zip', '/usr/local/lib/python3.12', '/usr/local/lib/python3.12/lib-dynload', '/root/.local/lib/python3.12/site-packages', '/usr/local/lib/python3.12/site-packages']
^^^^^^^^ これ誰がどうやって追加してるの? ^^^^^^^^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment