Closed GMFranceschini closed 2 years ago
Can you try running
pip install "numpy<1.17,>=1.16"
? Looks like this might be a problem with numpy, not with phate.
Thank you Scott, I wasn't able to go back to a previous numpy version, but installing with reticulate::py_install("phate", pip=TRUE)
worked. Oddly, it seems that the numpy version is non the one that you required, so I guess it could be the fact that I was using 3.10
and here miniconda uses 3.8
. I close the issue as I am now able to run phate!
reticulate::py_config()
python: /home/gianma/.local/share/r-miniconda/envs/r-reticulate/bin/python
libpython: /home/gianma/.local/share/r-miniconda/envs/r-reticulate/lib/libpython3.8.so
pythonhome: /home/gianma/.local/share/r-miniconda/envs/r-reticulate:/home/gianma/.local/share/r-miniconda/envs/r-reticulate
version: 3.8.13 | packaged by conda-forge | (default, Mar 25 2022, 06:04:18) [GCC 10.3.0]
numpy: /home/gianma/.local/share/r-miniconda/envs/r-reticulate/lib/python3.8/site-packages/numpy
numpy_version: 1.23.1
Hmm, odd. I just looked at PHATE's requirements and we don't restrict numpy<1.17
so I'm not quite sure where that came from, but in any case I'm glad you got it installed!
Describe the bug I am trying to install phate in python and I get an error.
To Reproduce
pip install --user phate
Expected behavior Installation completes successfully
Actual behavior The error is attached below.
System information: Python 3.10.4 , Ubuntu 22.04