安装python caffe和anaconda2 (pycaffe)

2024-09-29 21:44:48 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试运行这个演示https://github.com/ZheC/Realtime_Multi-Person_Pose_Estimation

我在运行ubuntu14.04

我已经安装了Python,安装了许多许多依赖项后,另一个弹出。它还需要python咖啡馆

所以我用这个命令安装了它: (我也试过Pip install caffe,但如果失败了)

Conda install caffe

但当我试着运行它时,我得到:

^{pr2}$

Tags: installpiphttps命令githubcommultirealtime
1条回答
网友
1楼 · 发布于 2024-09-29 21:44:48

在pythonv2.7.14虚拟环境中运行conda v4.3.27并安装caffev1.0.0rc5,我已经能够在我自己的Anaconda环境中验证这种行为。在

在进一步研究这个问题之后,它似乎与以下公开的水蟒问题有关:caffe needs to pin protobuf requirement to version #6733

如本期所述:

The caffe and caffe-gpu package in defaults has a requirement on protobuf without any version dependencies. Unfortunately, the caffe packages links to libprotobuf.so.12 which is provided by the protbuf version 3.2.0

因此,我发现通过首先手动安装protobufv3.2.0,我能够成功地在Python中运行import caffe,方法如下:conda install protobuf==3.2.0

相关问题 更多 >

    热门问题