2
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Pycharmを用いたWindows10環境におけるscikit-learnの構築

Last updated at Posted at 2017-09-10

はじめに

環境構築系はほんとうに面倒ですよね.
環境の数だけ資料があってもいいと思います.
なので,備忘録として残しておきます.
(タイトルを論文のタイトルっぽくしてみました:sunny:)

今回の環境

  • OS

    • エディション: Windows 10 Pro
    • バージョン: 1703
    • OSビルド: 15063.540
    • システムの種類: 64ビットオペレーティングシステム、x64ベースプロセッサ
  • Pycharm

    • Pycharm: 2017.2.3
    • JRE: 1.8.0_152-release-915-b11 amd64
    • JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
  • Python

    • Python: 3.5.0
  • Python Module

    • pip: 9.0.1
    • setuptools: 36.4.0

構築

まずはPycharmを駆使する

参考: http://d.hatena.ne.jp/graySpace/20150505/1430809117
ありがとうございます.

さて, scikit-learn いれましょう.以下のリストをポチポチクリックしてください.

  • file
  • Setting
  • Project:(アプリ名)
  • Project Interpreter
  • 緑の+ボタン
  • scikit-learn で検索
  • scikit-learn をクリック
  • Install package

多分エラーになるはずです.
scipy入れろとか,最新にしろとか.

解決

参考:
http://toriaezu-engineer.hatenablog.com/entry/2016/10/09/084428#環境
私は,上記のサイトようにダウンロードして入れました.

私がやった流れを以下に記します.

scipy-0.19.1-cp35-cp35m-win32.whl ダウンロード

numpy のuninstall

$ pip uninstall numpy

scipy numpy のinstall

$ pip install scipy-0.19.1-cp35-cp35m-win32.whl

pip install scipy-0.19.1-cp35-cp35m-win32.whl だけで, scipy numpy 両方入りました.

scikit-learnのinstall

$ pip install sklearn

おわりに

pip install scipy-0.19.1-cp35-cp35m-win_amd64.whl ファイルではなぜかエラー出ました.

pip install scipy-0.19.1-cp35-cp35m-win_amd64.whl
scipy-0.19.1-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform.

環境構築めんどくさe...:cloud:

2
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?