Getting python caffe to work with anaconda

432 views
Skip to first unread message

Saurabh B

unread,
Sep 23, 2015, 11:50:20 AM9/23/15
to Caffe Users
Hi there,

I have all the requirements installed. And I am new to anaconda as well so this might be because of a knowledge gap.

My understanding is that anaconda does not allow PYTHONPATH.. we are supposed to install the package.

I zipped up the distribution in /caffe/python/distribute/python and tried to install it -

(caffe2)ubuntu@ip-172-30-0-189:~/caffe/distribute/python$ conda install --channel file://home/ubuntu/caffe/distribute/python caffe.tar.bz2
[      COMPLETE      ]|######################################################################################################################################################################| 100%
Extracting packages ...
[      COMPLETE      ]|######################################################################################################################################################################| 100%
Linking packages ...
An unexpected error has occurred, please consider sending the                                                                                                                                |   0%
following traceback to the conda GitHub issue tracker at:


Include the output of the command 'conda info' in your report.


Traceback (most recent call last):
  File "/home/ubuntu/.conda/envs/caffe2/bin/conda", line 5, in <module>
    sys.exit(main())
  File "/opt/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 194, in main
    args_func(args, p)
  File "/opt/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 201, in args_func
    args.func(args, p)
  File "/opt/anaconda/lib/python2.7/site-packages/conda/cli/main_install.py", line 45, in execute
    install.install(args, parser, 'install')
  File "/opt/anaconda/lib/python2.7/site-packages/conda/cli/install.py", line 204, in install
    verbose=not args.quiet)
  File "/opt/anaconda/lib/python2.7/site-packages/conda/misc.py", line 215, in install_local_packages
    execute_actions(actions, verbose=verbose)
  File "/opt/anaconda/lib/python2.7/site-packages/conda/plan.py", line 533, in execute_actions
    inst.execute_instructions(plan, index, verbose)
  File "/opt/anaconda/lib/python2.7/site-packages/conda/instructions.py", line 148, in execute_instructions
    cmd(state, arg)
  File "/opt/anaconda/lib/python2.7/site-packages/conda/instructions.py", line 91, in LINK_CMD
    link(state['prefix'], arg, index=state['index'])
  File "/opt/anaconda/lib/python2.7/site-packages/conda/instructions.py", line 87, in link
    install.link(pkgs_dir, prefix, dist, lt, index=index)
  File "/opt/anaconda/lib/python2.7/site-packages/conda/install.py", line 579, in link
    files = list(yield_lines(join(info_dir, 'files')))
  File "/opt/anaconda/lib/python2.7/site-packages/conda/install.py", line 200, in yield_lines
    for line in open(path):
IOError: [Errno 2] No such file or directory: '/home/ubuntu/.conda/envs/.pkgs/caffe/info/files'
(caffe2)ubuntu@ip-172-30-0-189:~/caffe/distribute/python$


Has anyone solved this?
Reply all
Reply to author
Forward
0 new messages