Library not loaded: @rpath/libopenblas.dylib


I have just installed pymc3, via Conda $ conda install -c conda-forge pymc3 under Conda fenicsproject environment ($ conda activate fenicsproject , I installed pymc3 under fenicsproject environment so I could later interface them. )

However, when I tested pymc3 installation with python3 3 -c "import pymc3 as pm" , I received the following error, anyone know how to fix this? Thanks!

Traceback (most recent call last):
File “”, line 1, in
File “//anaconda3/envs/fenicsproject/lib/python3.7/site-packages/pymc3/”, line 5, in
from .distributions import *
File “//anaconda3/envs/fenicsproject/lib/python3.7/site-packages/pymc3/distributions/”, line 1, in
from . import timeseries
File “//anaconda3/envs/fenicsproject/lib/python3.7/site-packages/pymc3/distributions/”, line 1, in
from scipy import stats
File “//anaconda3/envs/fenicsproject/lib/python3.7/site-packages/scipy/stats/”, line 367, in
from .stats import *
File “//anaconda3/envs/fenicsproject/lib/python3.7/site-packages/scipy/stats/”, line 172, in
import scipy.special as special
File “//anaconda3/envs/fenicsproject/lib/python3.7/site-packages/scipy/special/”, line 641, in
from ._ufuncs import *
ImportError: dlopen(//anaconda3/envs/fenicsproject/lib/python3.7/site-packages/scipy/special/, 2): Library not loaded: @rpath/libopenblas.dylib
Referenced from: //anaconda3/envs/fenicsproject/lib/python3.7/site-packages/scipy/special/
Reason: image not found

Notes: this error occurred on my MacOS. When I installed pymc3 on my Linux station with identical steps, it was successful.

seems it is something related to your c compiler - could you try open Xcode and check if there is any problem there?