Can't import pystan and pymc3

Definitely I can’t import pystan and pymc3, I try all possibility. I believe that its about windows 7, Python version o installer type by pip or conda

Hi, can you clarify what you have tried to do and what is the error you see?

What does this say

import os
1 Like

Yes, I installed pystan, pymc3 with its dependencies, I installed and reinstalled and can’t. The same thing happened to me with numpy, seaborn and others modules then after to reinstall this it works very well. Instead when I try import pystan and pymc3 return:

WARNING (theano.tensor.blas): Using NumPy C-API based implementation for BLAS functions.
Traceback (most recent call last):
File “”, line 3, in
import pystan
ImportError: No module named pystan


can you try just the pymc part?

If that works, but pystan does not, please ask help for pystan on

Also, how did you install pymc?

import os
<module ‘os’ from ‘C:\Users\LuisEmerson\anaconda3\lib\’>

I have installed pystan and pymc3, I installed and reinstalled by pip and conda.
I installed:
pip install pymc3
python -m pip install pymc3
conda install pymc3 -c conda-forge

I created new environment
conda activate stan_env

then, I when try import:
import pystan
ImportError: No module named pymc3

Ok, there looks like multiple things going on at the same time.

First, you need to know what environment you are using. Two different environments do not share the installed packages.

So, let’s assume you have anaconda prompt on, and you have installed pymc with conda install pymc3 -c conda-forge

Then open python and run import pymc3. Does that work?

If that does, do the same with pystan (Don’t change environments or anything).

1 Like