I am doing a project using the PySEAL library. My project is Machine Learning related so I want to use scikit-learn, pandas and numpy libraries. How can I install these libraries so that I can use them in PySEAL docker container's code?
To install packages in a docker container, the packages should be defined in the Dockerfile. If you want to install packages in the Container, use the RUN statement followed by exact download command . You can update the Dockerfile with latest list of packages at anytime and build again to create new image out of it.
There are essentially 5 steps:Create your python program (skip if you already have a Python program code) Create a docker file. Build the docker file into an image. Run the docker image in a container.
Using such an isolated environment makes it possible to install a specific version of scikit-learn with pip or conda and its dependencies independently of any previously installed Python packages.
Simply add numpy
and scikit-learn
to PySEAL's requirements file.
Your final requirements file should be:
pybind11
cppimport
jupyter
numpy
scikit-learn
And run build-docker.sh
again.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With