Cannot use Caffe with "Data Science Virtual Machine for Linux" RRS feed

  • Question

  • I am trying to use the "Data Science Virtual Machine for Linux" in order to use Caffe. According to the documentation it should be pre-installed with all required dependencies.

    I am installing it on an NC6 machine in US East.

    After installation I cannot use caffe from the command-line or include it within a python script. 

    I chatted briefly with @AzureSupport on Twitter here: https://twitter.com/ThisIsJoshVarty/status/937048868897918977


    I can confirm Caffe exists at /opt/caffe

    However, running an example such as  



    ./build/tools/caffe: /anaconda/lib/libtiff.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4)
    ./build/tools/caffe: /lib/x86_64-linux-gnu/libz.so.1: version `ZLIB_1.2.9' not found (required by /anaconda/lib/./libpng16.so.16)



    Monday, December 4, 2017 8:15 PM


  • Hi Josh,

    The command-line executable is available at /opt/caffe/build/install/bin/caffe. It's supposed to be in the PATH, so I'll fix that soon.

    Caffe is only available for Python 2, and the default Python is 3.5. To activate the correct Conda environment, 

    source activate root

    Then import caffe.


    • Marked as answer by CodeConnect Wednesday, December 6, 2017 2:55 AM
    Monday, December 4, 2017 11:29 PM