aspuru-guzik-group / phoenics

Phoenics: Bayesian optimization for efficient experiment planning
Apache License 2.0
89 stars 19 forks source link

Installation errors with pip #9

Open azournas opened 1 year ago

azournas commented 1 year ago

Describe the bug conda env create -f environment.yml does not work. I suspect that this is due to Anaconda removing support for any version <3.8. I tried the installation through pip. Here is the error I got.

Input:

pip install phoenics

Output: Collecting phoenics Using cached phoenics-0.2.0.tar.gz (177 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [6 lines of output] Traceback (most recent call last): File "", line 2, in File "", line 34, in File "/private/var/folders/2z/b3nsqp4s48j2p8hgwhf1sj780000gp/T/pip-install-sezndou3/phoenics_6d2ab67fb8e44db9bcdf0f6d2eb4b991/setup.py", line 5, in import numpy as np ModuleNotFoundError: No module named 'numpy' [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details.

To Reproduce try to install using

pip install phoenics

Expected behavior Installation of phoenics through pip

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context This was corrected by installing numpy prior to calling

pip install phoenics