Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/18.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 3.x 在docker容器内安装openpose-dockerfile的安装问题_Python 3.x_Docker_Deep Learning_Containers_Openpose - Fatal编程技术网

Python 3.x 在docker容器内安装openpose-dockerfile的安装问题

Python 3.x 在docker容器内安装openpose-dockerfile的安装问题,python-3.x,docker,deep-learning,containers,openpose,Python 3.x,Docker,Deep Learning,Containers,Openpose,我想通过docker for python 3安装openpose。为此,我用所有命令制作了一个Dockerfile,并在安装过程中出错 我正在尝试使用此代码从头开始构建Dockerfile FROM ubuntu LABEL maintainer = "Ankit Sharma" <ankit.kumar@mirrorsize.com> RUN apt-get update RUN apt-get upgrade -y RUN apt-get install -y tzdata

我想通过docker for python 3安装openpose。为此,我用所有命令制作了一个Dockerfile,并在安装过程中出错

我正在尝试使用此代码从头开始构建Dockerfile

FROM ubuntu
LABEL maintainer = "Ankit Sharma" <ankit.kumar@mirrorsize.com>

RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y tzdata
RUN apt-get install -y python3 python3-pip
RUN apt-get install -y libopencv-dev
RUN apt install -y libprotobuf-dev protobuf-compiler
RUN apt-get install -y libhdf5-dev
RUN apt-get install -y libgoogle-glog-dev
RUN apt-get install -y git
RUN apt-get install -y libboost-all-dev
RUN apt-get install -y wget

WORKDIR src

RUN git clone https://github.com/CMU-Perceptual-Computing-Lab/openpose.git

WORKDIR /src/openpose/3rdparty

RUN rm -r caffe
RUN rm -r pybind11

RUN git clone https://github.com/BVLC/caffe.git
RUN git clone https://github.com/pybind/pybind11.git

WORKDIR /src/openpose/build

RUN apt-get -y install cmake
RUN cmake .. -DBUILD_CAFFE=ON -DBUILD_python=ON -DGPU_MODE=CPU_ONLY -USE_OPENCV=ON
RUN make
RUN make install

RUN make -j 64
Caffe构建中还出现了其他错误-

[ 39%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/mkldnn_eltwise_layer.cpp.o
[ 39%] Building CXX object 

src/caffe/CMakeFiles/caffe.dir/layers/mkldnn_inner_product_layer.cpp.o
/src/openpose/3rdparty/caffe/src/caffe/layers/mkldnn_inner_product_layer.cpp: In member function 'void 

caffe::MKLDNNInnerProductLayer<Dtype>::InitInnerProductBwd(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<bool>&, const std::vector<caffe::Blob<Dtype>*>&)':

/src/openpose/3rdparty/caffe/src/caffe/layers/mkldnn_inner_product_layer.cpp:357:2: error: this 'else' clause does not guard... [-Werror=misleading-indentation]
  else
  ^~~~

/src/openpose/3rdparty/caffe/src/caffe/layers/mkldnn_inner_product_layer.cpp:361:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
     ipBwdData_desc.reset(new inner_product_backward_data::desc(init_bottom_md, init_weights_md, init_top_md));
     ^~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
[39%]构建CXX对象src/caffe/CMakeFiles/caffe.dir/layers/mkldnn\u eltwise\u layer.cpp.o
[39%]正在构建CXX对象
src/caffe/CMakeFiles/caffe.dir/layers/mkldnn\u inner\u product\u layer.cpp.o
/src/openpose/3rdparty/caffe/src/caffe/layers/mkldnn_inner_product_layer.cpp:成员函数中的“void”
caffe::mkldnninerProductLayer::InitInnerProductBwd(常量std::vector&,常量std::vector&,常量std::vector&)':
/src/openpose/3rdparty/caffe/src/caffe/layers/mkldnn\u inner\u product\u layer.cpp:357:2:错误:此'else'子句不保护。。。[-Werror=误导性缩进]
其他的
^~~~
/src/openpose/3rdparty/caffe/src/caffe/layers/mkldnn_internal_product_layer.cpp:361:5:注意:…此语句,但后者被错误地缩进,好像由“else”保护
ipBwdData_desc.reset(新的内部产品向后数据::desc(初始底部,初始权重,初始顶部));
^~~~~~~~~~~~~~
cc1plus:所有警告都被视为错误

通常,如果您正在使用Python扩展构建一个C程序,您将需要python3开发包;同样,对于应用程序依赖的任何其他方面,通常如果您正在使用Python扩展构建一个C程序,那么您将需要python3开发包;同样,对于应用程序所依赖的任何其他内容。
[ 39%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/mkldnn_eltwise_layer.cpp.o
[ 39%] Building CXX object 

src/caffe/CMakeFiles/caffe.dir/layers/mkldnn_inner_product_layer.cpp.o
/src/openpose/3rdparty/caffe/src/caffe/layers/mkldnn_inner_product_layer.cpp: In member function 'void 

caffe::MKLDNNInnerProductLayer<Dtype>::InitInnerProductBwd(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<bool>&, const std::vector<caffe::Blob<Dtype>*>&)':

/src/openpose/3rdparty/caffe/src/caffe/layers/mkldnn_inner_product_layer.cpp:357:2: error: this 'else' clause does not guard... [-Werror=misleading-indentation]
  else
  ^~~~

/src/openpose/3rdparty/caffe/src/caffe/layers/mkldnn_inner_product_layer.cpp:361:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
     ipBwdData_desc.reset(new inner_product_backward_data::desc(init_bottom_md, init_weights_md, init_top_md));
     ^~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors