Anaconda finally updated their libgcc to 5.2.
This problem originates from the incompatible ABI between gcc 4.x and <5.2. The default gcc compiler for Ubuntu is >5.2. This is fine and everything works.
Then one installs Anaconda, which comes without
gcc, but it has
numba or some other package needs it).
libgcc comes with
libstdc++ which is used if any C++ code is compiled with Anaconda.
libgcc used to be 4.8 which meant that one could compile C++ code, but could not import anything compiled.
Now if one updates their libgcc this problem goes away.
conda update libgcc
ps. I do not recommend using Anaconda, instead use conda virtual environment. It is clean and easy to maintain. One can even install R /R-studio in conda-env (channel
conda create -n stan_env python=3.6 numpy cython pandas matplotlib scipy pystan jupyter notebook
source activate stan_env
# to list conda environments