Unable to install fancyimpute for use in Jupyter

江枫思渺然 提交于 2020-01-25 04:40:46

问题


I have been trying to import fancyimpute on a Jupyter Notebook, as I am interested in using K Nearest Neighbors for data imputation purposes. However, I continue to get the error described in the screenshot.

I have already tried installing the following dependencies:

pip install ecos
pip install CVXcanon
pip install keras
pip install tensorflow
pip install fancyimpute

The error message is the following:

Using TensorFlow backend.

RuntimeError Traceback (most recent call last) RuntimeError: module compiled against API version 0xb but this version of numpy is 0xa


ImportError Traceback (most recent call last) ImportError: numpy.core.multiarray failed to import


ImportError Traceback (most recent call last) ImportError: numpy.core.umath failed to import


ImportError Traceback (most recent call last) ImportError: numpy.core.umath failed to import

Screenshot Jupyter Notebook Error


回答1:


I got the same error. Fixed by updating my numpy installation:

pip install numpy --upgrade --user

The --user flag installs numpy to my home directory, to avoid using sudo with pip.




回答2:


using easy_install fancyimpute

instead of pip install fancyimpute worked for me



来源:https://stackoverflow.com/questions/50217492/unable-to-install-fancyimpute-for-use-in-jupyter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!