Installing FancyImpute in Anaconda
I was trying to install fancyimpute library on my windows system. I am using Spyder in Anaconda Navigator. I tried the following on the command line as administrator, but it shows
ModuleNotFoundError: No module named 'fancyimpute'
conda install -c https://conda.binstar.org/eswears cvxopt
pip install keras
pip install fancyimpute
Also installed Visual C++ Compiler for Python 2.7
I am using Python 3.6.1
Please help :)
source to share
I found that installing dependent libraries with conda will allow you to install fancyimpute. In particular, I had to install ecos and CVXcanon; you may need to install others, do so in order of warnings.
Use the commands on the command line:
conda install ecos
conda install CVXcanon
conda install fancyimpute
source to share
For those of you who can't get it to work with other solutions, here's what I did. First :
conda install ecos
Then I downloaded the build wheel for scs and cvxpy .
To install the build wheel, all I did was move to a folder (in my case, at the anaconda prompt, it was simple cd downloads
). Second , I ran the following commands in order:
pip install scs-2.1.0-cp36-cp36m-win_amd64.whl
pip install cvxpy-1.0.22-cp36-cp36m-win_amd64.whl
Then finally I could do
pip install fancyimpute
Note: that you can also copy and paste the file path, pip just needs to know where it is:
pip install C:\Users\<USERNAME>\Downloads\scs-2.1.0-cp36-cp36m-win_amd64.whl
pip install C:\Users\<USERNAME>\Downloads\cvxpy-1.0.22-cp36-cp36m-win_amd64.whl
source to share
For anyone trying MyopicVisage solution and encountering this error: cannot start rc.exe,
This is the solution: LNK1158 cannot start rc.exe x64 Visual Studio
source to share
This is how I solved this problem on my laptop. Install MS Build tool first. Visual Studio Studio Build tools require about 3 GB of disk space. After installing the Visual Studio installer, find the required C ++ compiler version (in our case, it is 14.0.xxx). Install this version, which will download a 900MB file and need about 3GB of hard disk space. After installation, restart your computer. Then go to conda prompt and enter these commands
conda update --all
conda create -n py36 python=3.6 anaconda
conda activate
conda install ecos
conda install CVXcanon
conda install -c cvxgrp scs
conda install scs
pip install fancyimpute
Another link for this: Unable to install fancyimpute in Python (for Windows 10)
If there are any "wrapt" related bugs just go through this https://github.com/tensorflow/tensorflow/issues/30191 After that you may need to reinstall sklearn and jiblib lilbraries again
pip uninstall sklearn
pip uninstall jiblib
pip install sklearn
pip install jiblib
source to share
You must first install Tensorflow and follow the instructions given at https://www.tensorflow.org/install/pip
And then you can install below
- Conda install Eco
- Conda install CVXcanon
- Conda set unusual
(you can install with pip too)
source to share