Python numpy安装中缺少numpy.distutils,theano尝试使用它
我正试图用西亚诺和千层面塑造码头工人的形象。以下是主要步骤:Python numpy安装中缺少numpy.distutils,theano尝试使用它,python,numpy,docker,theano,Python,Numpy,Docker,Theano,我正试图用西亚诺和千层面塑造码头工人的形象。以下是主要步骤: FROM nvidia/cuda:8.0-cudnn5-devel RUN apt-get install -y libopenblas-dev python-dev python-pip RUN pip install --upgrade pip RUN pip install nose numpy scipy pandas h5py scikit-image scikit-learn jupyter RUN pip freeze
FROM nvidia/cuda:8.0-cudnn5-devel
RUN apt-get install -y libopenblas-dev python-dev python-pip
RUN pip install --upgrade pip
RUN pip install nose numpy scipy pandas h5py scikit-image scikit-learn jupyter
RUN pip freeze > requirements.txt && pip install -r requirements.txt --upgrade && rm requirements.txt
RUN pip install --upgrade https://github.com/Theano/Theano/archive/master.zip
RUN pip install --upgrade https://github.com/Lasagne/Lasagne/archive/master.zip
当图像准备好后,我启动它并尝试通过简单地在ipython中导入theano来测试theano。我得到以下错误(结束):
根据pip安装的版本有:numpy(1.12.0)和Theano(0.9.0b1)。我有另一个图像,出于某种原因numpy.distutils
也不存在,但Theano不会尝试在import Theano
命令上调用它
numpy.distutils
没有安装numpy
安装
https://github.com/Theano/Theano/archive/master.zip
为您提供了该库的beta版,但它似乎并不适用于所有系统
除非您绝对需要No 0.9中的某些功能,否则我建议您改为从pip自己的存储库中安装。对于千层面
可能也会这样做
RUN pip install theano lasagne
安装
https://github.com/Theano/Theano/archive/master.zip
为您提供了该库的beta版,但它似乎并不适用于所有系统
除非您绝对需要No 0.9中的某些功能,否则我建议您改为从pip自己的存储库中安装。对于千层面
可能也会这样做
RUN pip install theano lasagne