For example, I'd like to be able to install a pip upgrade and other packages inside the ape archive:
$ ./python -m pip install --upgrade pip
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pip in /zip/Lib/site-packages (23.1.2)
Collecting pip
Downloading pip-24.1-py3-none-any.whl (1.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 23.6 MB/s eta 0:00:00
Installing collected packages: pip
WARNING: The scripts pip, pip3 and pip3.11 are installed in '/Users/roy/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed pip-24.1
But it looks like the path /zip/Lib is not writable from within python execution, so it defaults to $HOME/.local/bin instead.
Is there a way to enable writing to /zip/Lib/site-packages?
For example, I'd like to be able to install a
pip
upgrade and other packages inside the ape archive:But it looks like the path
/zip/Lib
is not writable from within python execution, so it defaults to$HOME/.local/bin
instead.Is there a way to enable writing to
/zip/Lib/site-packages
?