Home>
What ’s wrong now?

An error occurred when trying to install "fancyimpute", a sklearn package. There are some information about how to deal with errors on overseas sites, but I still have trouble solving them. Can anyone ask me if I have any experience? Should Microsoft Visual C ++ 14.0 be included obediently?

My environment

Windows10Pro
64bit x64-based processor
RAM 8GB
Python 3.6.5
IPython 6.4.0
Microsoft Visual C ++ 2010 x64 Redistributable
Microsoft Visual C ++ 2010 x86 Redistributable
Microsoft Visual C ++ 2012 Redistributable
Microsoft Visual C ++ 2013 Redistributable

How to install
pip install fancyimpute
Error details
running bdist_wheel
  running build
  running build_py
  creating build
  creating build \ lib.win-amd64-3.6
  copying src \ ecos.py->build \ lib.win-amd64-3.6
  running build_ext
  building '_ecos' extension
  error: Microsoft Visual C ++ 14.0 is required. Get it with "Microsoft Visual C ++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
  ----------------------------------------
  Failed building wheel for ecos
  Running setup.py clean for ecos
  Running setup.py bdist_wheel for scs ... done
  Running setup.py clean for scs
Failed to build cvxpy ecos scs
Installing collected packages: ecos, scs, pyreadline, dill, multiprocess, cvxpy, fancyimpute
  Running setup.py install for ecos ... error
    Complete output from command c: \ users \ ... \ appdata \ local \ continuum \ anaconda3 \ python.exe -u -c "import setuptools, tokenize;__ file __ = 'C: \\ Users \\ ... \\ AppData \\ Local \\ Temp \\ pip-install-wo3aw_ro \\ ecos \\ setup.py ';f = getattr (tokenize,' open ', open) (__ file __);code = f.read (). Replace (' \ r \ n ',' \ n ');f.close ();exec (compile (code, __file__,' exec ')) "install --record C: \ Users \ ... \ AppData \ Local \ Temp \ pip-record-ndxif57m \ install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build \ lib.win-amd64-3.6
    copying src \ ecos.py->build \ lib.win-amd64-3.6
    running build_ext
    building '_ecos' extension
    error: Microsoft Visual C ++ 14.0 is required. Get it with "Microsoft Visual C ++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
    ----------------------------------------
Command "c: \ users \ ... \ appdata \ local \ continuum \ anaconda3 \ python.exe -u -c" import setuptools, tokenize;__ file __ = 'C: \\ Users \\ ... \\ AppData \\ Local \\ Temp \\ pip-install-wo3aw_ro \\ ecos \\ setup.py ';f = getattr (tokenize,' open ', open) (__ file __);code = f.read (). Replace (' \ r \ n ',' \ n ');f.close ();exec (compile (code, __file__,' exec ')) "install --record C: \ Users \ ... \ AppData \ Local \ Temp \ pip -record-ndxif57m \ install-record.txt --single-version-externally-managed --compile "failed with error code 1 in C: \ Users \ ... \ AppData \ Local \ Temp \ pip-install-wo3aw_ro \ ecos \
  • Answer # 1

    A tool with the following URL must be preceded.
    https://download.microsoft.com/download/5/F/7/5F7ACAEB-8363-451F-9425-68A90F98B238/visualcppbuildtools_full.exe

    ". net freamwork 4.5.1" is from the following URL ...
    https://www.microsoft.com/en-US/download/details.aspx?id=40779