Skip to content

Confliction between python version when training caffe #4467

@linhlinhking

Description

@linhlinhking

I have built caffe with python in Anaconda instead of default python, everything is fine except using PYTHON_LAYER layer to fine tune a model. Caffe runs with default python version on the system in /usr/bin (which is not the version it was built with), so it cannot import some modules in python and shows an error:

ImportError: numpy.core.multiarray failed to import

I don't know how to specify the new python execution path to Caffe when training, can you guys help me to fix that.

I tried to change the python command's location by "alias python=.../anaconda2/bin/python" but it doesn't work (I'm not the sudoer so I don't have permission to install anything globally)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions