You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to be able to pip install into a Python container's virtualenv. Doing so would allow me to use profiling tools from within IPython, as described in Profiling and Timing Code in the Python Data Science Handbook.
If I run
docker run --interactive --tty --volume $(pwd):/workspace --entrypoint ipython ghcr.io/opensafely-core/python:latest
then I can
!pip install memory_profiler
from within IPython. However, if I run
opensafely exec python:latest ipython
then pip install fails, because it doesn't have permission to write to /opt/venv.
The text was updated successfully, but these errors were encountered:
I'd like to be able to
pip install
into a Python container's virtualenv. Doing so would allow me to use profiling tools from within IPython, as described in Profiling and Timing Code in the Python Data Science Handbook.If I run
then I can
from within IPython. However, if I run
then
pip install
fails, because it doesn't have permission to write to/opt/venv
.The text was updated successfully, but these errors were encountered: