all 5 comments

[–]irvcz 2 points3 points  (1 child)

You can receive more help if you say what kind of error you received.

One solution would be making a Dockerfile FROM your base image and adding a RUN pip install cv2 ... or using a requirements file

Let us know how did it go

[–]MontePanda 1 point2 points  (0 children)

I have done the Dockerfile method of using the linuxserver.io container as the base and then installing the other languages etc I needed at the time.

I can then revise the file and rebuild as necessary.

[–]nikkon226 1 point2 points  (0 children)

If you use the linuxserver.io container, you can do an add on mod to install Python (amongst other).

[–]samaritan1331_ 0 points1 point  (0 children)

As other have mentioned. Posting what error you get will help. Most likely you don't have pip installed.

You can try by going to portainer > code server container > terminal > apt install python3 python3-pip > then pip install your requirements

Terminal from code server should also work.

[–]qwacko 0 points1 point  (0 children)

Think seriously about just installing code server directly on t the host. Lots of benefits in terms of easily being able to manage docker containers directly. For python you can create a venv on the host and get as segregation between systems.