Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions pages/custom-query-modules/python.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ inside a Docker container, run the following command in the terminal:


```
docker exec -i -u root <container_id> bash -c "apt install -y python3-pip &&
docker exec -i -u memgraph <container_id> bash -c "apt install -y python3-pip &&
pip install pandas"
```

Expand All @@ -69,16 +69,16 @@ commands in the Dockerfile:
```
FROM memgraph/memgraph:latest

USER root
USER memgraph

RUN apt install -y python3-pip
RUN pip install pandas

USER memgraph
```

It is important that you install Python library as a `root` user, rather than
the default `memgraph` user.
Python libraries should now be installed as the `memgraph` user, which is the
default user inside the Memgraph container. You no longer need to switch to the
`root` user to perform installations.

## Example

Expand Down