'Function not working in R even though I installed python dependency

I am using this function called phate in R.

https://buildmedia.readthedocs.org/media/pdf/phate/latest/phate.pdf

I downloaded phate in R and python through pip install as mentioned in document above.

I am still getting the following error in R:

Error in python_config(python_version, required_module, python_versions) : 
  Error 137 occurred running /Users/abhaykanodia/.virtualenvs/r-reticulate/bin/python 


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source