Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

GPyOpt Singuarlity Image #325

Open
MaryHadley opened this issue Jun 30, 2020 · 6 comments
Open

GPyOpt Singuarlity Image #325

MaryHadley opened this issue Jun 30, 2020 · 6 comments

Comments

@MaryHadley
Copy link

Hi,

I've read the various docs about how to install GPyOpt, and I've had some trouble with all the methods, even checking out the package from Github. Ultimately, I would like to make a singularity image that has GPyOpt that I can pass on to others in my collaboration -- do you have instructions for creating such an image?

Thank you,
Mary

@apaleyes
Copy link
Collaborator

Hi. Unfortunately I've never even heard of "singularity image". Can you please elaborate what's that?

Also, can you share the issues you had install GPyOpt? It's just a Python package, so normally pip install gpyopt should work fine. If you could post what you have tried and what specific errors you've encountered, we might be able to help.

@ekalosak
Copy link
Contributor

Hey fellow Bruno - I'm guessing, from what I've read on singularity, you might be looking for something like a Dockerfile that contains GPyOpt. This is going to be the same process as building a docker image with the GPyOpt package installed. As Andrei writes, you could do something like

FROM python3.8
RUN pip install gypopt
COPY myscript.py /
ENTRYPOINT python myscript.py

@MaryHadley
Copy link
Author

MaryHadley commented Jul 1, 2020 via email

@apaleyes
Copy link
Collaborator

apaleyes commented Jul 1, 2020

What I see in the installation log is just a permission issue, nothing to do with gpyopt or python version. By default pip installs packages into system directory, which requires root access. Things you could do:

@MaryHadley
Copy link
Author

MaryHadley commented Jul 1, 2020 via email

@ekalosak
Copy link
Contributor

ekalosak commented Jul 1, 2020

@MaryHadley when you figure this out, it would be great to have your Dockerfile (or a stripped down example) in the wiki: https://github.com/SheffieldML/GPyOpt/wiki

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants