Theano不认可Anaconda新编译器

Theano不认可Anaconda新编译器,anaconda,conda,theano,conda-forge,Anaconda,Conda,Theano,Conda Forge,我有一个基于以下yaml的conda虚拟环境: channels: - conda-forge dependencies: - gcc_linux-64 - gxx_linux-64 - gfortran_linux-64 - theano 这是一个简化的示例,实际上YAML有更多的包。 具体来说,该软件安装在base环境中的docker容器中,但我不认为我的问题与容器有关。Dockerfile的重要部分如下所示: # BASE IMAGE FROM ubuntu:18.

我有一个基于以下yaml的
conda
虚拟环境:

channels:
  - conda-forge

dependencies:
  - gcc_linux-64
  - gxx_linux-64
  - gfortran_linux-64
  - theano
这是一个简化的示例,实际上YAML有更多的包。
具体来说,该软件安装在
base
环境中的
docker
容器中,但我不认为我的问题与容器有关。Dockerfile的重要部分如下所示:

# BASE IMAGE
FROM ubuntu:18.04

# PATH EXPORT
ENV PATH="/root/miniconda3/bin:${PATH}"
ARG PATH="/root/miniconda3/bin:${PATH}"

# UPDATE THE PACKAGE LIST
RUN apt-get update

# INSTALL WGET
RUN apt-get install -y wget && rm -rf /var/lib/apt/lists/*

# INSTALL MINICONDA WITH PYTHON 3.7
RUN wget --no-verbose \
    https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
    && mkdir /root/.conda \
    && bash Miniconda3-latest-Linux-x86_64.sh -b \
    && rm -f Miniconda3-latest-Linux-x86_64.sh

# UPDATE CONDA
RUN conda update --name base --channel defaults conda

# COPY THE YAML & INSTALL SOFTWARE WITH CONDA
COPY conda_packages.yaml .
RUN conda env update --name base --file conda_packages.yaml
容器已正确构建,之后我可以使用以下命令在其中运行Anaconda新编译器:
x86\u 64-conda\u cos6-linux-gnu-gcc
x86\u 64-conda\u cos6-linux-gnu-c++
。但是,当我运行一个测试python脚本,该脚本导入了no时,我得到一个错误:

/root/miniconda3/lib/python3.7/site-packages/theano/configdefaults.py:560: UserWarning:

DeprecationWarning: there is no c++ compiler.This is deprecated and with Theano 0.11 a c++ compiler will be mandatory

WARNING (theano.configdefaults): g++ not detected ! Theano will be unable to execute optimized C-implementations (for both CPU and GPU) and will default to Python implementations. Performance will be severely degraded. To remove this warning, set Theano flags cxx to an empty string.
WARNING (theano.configdefaults): install mkl with `conda install mkl-service`: No module named 'mkl'
WARNING (theano.tensor.blas): Using NumPy C-API based implementation for BLAS functions.
当我稍后检查构建日志时,安装的版本是:1.0.4
编译器版本为:7.3.0