質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
Python 3.x

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

Q&A

解決済

1回答

758閲覧

[python] Fancyimputeインストール時にエラーが出て困っています

mini1988

総合スコア56

Python 3.x

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

0グッド

0クリップ

投稿2018/08/28 05:52

現状、困っていること

sklearnのパッケージである「fancyimpute」をインストールしようとしたところエラーが発生しました。海外サイトでもエラーの対処方法が紹介されているのですが、それでもなかなか解決できずに困っています。どなたかご経験のある方、ご教示お願いできないでしょうか?Microsoft Visual C++ 14.0を素直に入れるべきなのでしょうか?

私の環境

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

インストール方法

pip install fancyimpute

エラー内容

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\

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

投稿2018/08/28 07:08

paolo.ahn

総合スコア73

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

mini1988

2018/08/28 07:31

回答いただき、ありがとうございます。 「.net freamwork 4.5.1」は入っているのを確認し、visualcppbuildtools_full.exe を実行しました。しかし、実行中に「タイムアウト」になってしまい、現状、インストールできない状況にあります。
mini1988

2018/08/28 07:38

microsoft visual c++ build tools インストール時のメッセージ ----- セットアップを初期化しています フィードを構成しています インストールを選択してください 「既定」を選択 取得しています 適用しています システムの復元ポイントを作成しています、、、 ここまでは順調そうで、数分後に、、、 セットアップに失敗しました。 必要なコンポーネントでエラーが発生したため、インストールを続行できません。 製品の機能をフルに使用するには以下の問題を修正し、セットアップを再起動してください。詳細については、一般的な問題および回避策またはログファイルをご覧ください。 セットアップエンジン タイムアウト期間が経過したため、この操作は終了しました。
paolo.ahn

2018/08/28 07:52

改めて「.net freamwork 4.5.1」をインストールし、visualcppbuildtools_full.exeをAdmin権限で実行してみてください。同様のエラーが発生した場合は、生成されたログの内容を確認する必要があります。
mini1988

2018/08/28 11:25

解決できました、ありがとうございました! 教えていただいたことに加えて、「pip install ecos==2.0.7rc1」でうまくできました!
paolo.ahn

2018/08/28 21:14

良かったですね!
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問