PrincetonUniversity / DP_GP_cluster

BSD 3-Clause "New" or "Revised" License
73 stars 25 forks source link

Issue when using conda and numpy #24

Open JohnHadish opened 3 years ago

JohnHadish commented 3 years ago

Documenting an issue I had when attempting to install with conda 4.9.2 on Ubuntu 20.04. It is required that you specify a numpy version which is at least 1.16. (For me it automatically installed a 1.15 version when using a python 2.7 environment). This is due to how numpy interacts with pandas. You will get this error:

Traceback (most recent call last):
  File "/home/user/anaconda3/envs/DP_GP/bin/DP_GP_cluster.py", line 26, in <module>
    from DP_GP import core
  File "__init__.pxd", line 861, in init DP_GP.core (DP_GP/core.c:34688)
ValueError: numpy.ufunc has the wrong size, try recompiling. Expected 192, got 216

Forcing an upgrade to 1.16 will solve this:

conda install numpy=1.16

Hope that this may save some time for someone.