Very strange!
It can run the exactly the same code in pycharm, but cannot run in jupyter notebook.
I tried the sys.executable to find the interpretor, both are using the same conda environment.
import sys
sys.executable
But in jupyter, the code
with pm.Model() as our_first_model:
θ = pm.Beta("θ", alpha=1.0, beta=1.0)
y = pm.Bernoulli("y", p=θ, observed=data)
trace = pm.sample(1000, random_seed=123)
generates the following error message:
Exception: ('Compilation failed (return status=1): C:\\Users\\xxx\\AppData\\Local\\Theano\\compiledir_Windows-10-10.0.19041-SP0-AMD64_Family_23_Model_96_Stepping_1_AuthenticAMD-3.8.8-64\\tmpofsac3dd\\mod.cpp:1:0: sorry, unimplemented: 64-bit mode not compiled in\r. #include <Python.h>\r. \r. ', 'FunctionGraph(Elemwise{add,no_inplace}(TensorConstant{1.0}, TensorConstant{1.0}))')