2017-02-21 18 views
0

私はcaffeの新機能です。輸入カフェ、で、Windows 10でCaffeモジュールのインストールに失敗しました

ファイル "create_lmdb.py"、19行目:私は、このコマンドを実行したとき http://adilmoujahid.com/posts/2016/06/introduction-deep-learning-python-caffe/

のpython create_lmdb.pyを、私は次のエラーを得た私は、このリンクを以下ました; はImportError:https://github.com/BVLC/caffe/tree/windows、特別に以下のコード: 'カフェ'

という名前のモジュールは、私は、このリンクを使用してカフェをインストールしようとしたん

C:\Projects> git clone https://github.com/BVLC/caffe.git 
    C:\Projects> cd caffe 
    C:\Projects\caffe> git checkout windows 
    :: Edit any of the options inside build_win.cmd to suit your needs 
    C:\Projects\caffe> scripts\build_win.cmd 

私はfolllowingエラーを持っている:

CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. 
    CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage 
    CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage 
    -- Configuring incomplete, errors occurred! 
    See also "C:/Project_git/caffe/scripts/build/CMakeFiles/CMakeOutput.log". 
    ERROR: Configure failed 

忍者をダウンロードしましたが、どうしたらよいか分かりません。だから私はWITH_NINJA = 0にWITH_NINJA = 1を変更しようとしました、そして、私は私が私の次のステップがどうあるべきか教えてください、次のエラー

-- The C compiler identification is MSVC 19.0.24215.1 
    -- The CXX compiler identification is MSVC 19.0.24215.1 
    -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe 
    -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works 
    -- Detecting C compiler ABI info 
    -- Detecting C compiler ABI info - done 
    -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe 
    -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works 
    -- Detecting CXX compiler ABI info 
    -- Detecting CXX compiler ABI info - done 
    -- Detecting CXX compile features 
    -- Detecting CXX compile features - done 
    -- Found PythonInterp: C:/Python34/python.exe (found suitable version "3.4.3", minimum required is "2.7") 
    CMake Error at cmake/WindowsDownloadPrebuiltDependencies.cmake:29 (message): 
     Could not find url for MSVC version = 1900 and Python version = 3.4. 
    Call Stack (most recent call first): 
     CMakeLists.txt:75 (include) 
    -- Configuring incomplete, errors occurred! 
    See also C:/Project_git/caffe/scripts/build/CMakeFiles/CMakeOutput.log". 
    ERROR: Configure failed 

を持っています!前もって感謝します!メモ帳で

答えて

0

ステップ#1

オープンbuild_win.cmd ++と私はマイクロソフトのVisual Studio 2013

:: Change MSVC_VERSION to 12 to use VS 2013 
if NOT DEFINED MSVC_VERSION set MSVC_VERSION=12 

を使用しています

:: Change to 1 to use Ninja generator (builds much faster) 
if NOT DEFINED WITH_NINJA set WITH_NINJA=0 

(ディアブル忍者のビルドに)以下のようにファイルの行を更新ステップ#2

カフェフォルダ内にある開いているビルドフォルダl以前に生成されたファイル。

ステップ#3

のPython 3.6が正式にサポートされていないとPython 3.5は、いくつかの困難な問題があります。初心者の方は、Python 2.7をインストールすることをお勧めします。

Install anaconda 2.7 [Anaconda 2.7][1] 

ステップ#4

Execute scripts/build_win.cmd 
[1]: https://www.continuum.io/downloads 

再フォーマット簡単

+0

それでも苦労+ Pythonの2.7 –

+0

VS 2017でカフェをコンパイルすることができますを読み取るためのコード。 @ JumabekAlikhanovあなたはどんな成功を収めましたか? – Hamdard

関連する問題