You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed pymc using pip install pymc --user and it seemed to be installed normally.
Successfully installed pymc-2.3.6
However, when I import pymc in python shell, I get the follow error message. Not sure how to deal with this.
Python 3.7.3 (default, Mar 27 2019, 22:11:17)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
import pymc
Traceback (most recent call last):
File "", line 1, in
File "/home/7s2/.local/lib/python3.7/site-packages/pymc/init.py", line 19, in
from .threadpool import *
File "/home/7s2/.local/lib/python3.7/site-packages/pymc/threadpool.py", line 346
def await(self):
^
SyntaxError: invalid syntax
The text was updated successfully, but these errors were encountered:
ghost
changed the title
def await(self): ^ SyntaxError: invalid syntax
Successfully installed but can't import
Mar 25, 2020
I am having the same issue. It worked a couple days ago and now when I running the same code I get """---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
ImportError Traceback (most recent call last)
in
----> 1 import pymc as pm
~/anaconda3/lib/python3.8/site-packages/pymc/init.py in
27 from .Container import *
28 from .PyMCObjects import *
---> 29 from .InstantiationDecorators import *
30 from .CommonDeterministics import *
31 from .NumpyDeterministics import *
~/anaconda3/lib/python3.8/site-packages/pymc/InstantiationDecorators.py in
26 from .Container import Container
27 import numpy as np
---> 28 from .utils import get_signature
29
30 special_methods_available = [True]
~/anaconda3/lib/python3.8/site-packages/pymc/utils.py in
12 from copy import copy
13 from .PyMCObjects import Variable
---> 14 from . import flib
15 import pdb
16 from numpy.linalg.linalg import LinAlgError
ImportError: numpy.core.multiarray failed to import
"""
Updated Numpy and used import numpy.core.multiarray ....
I installed pymc using
pip install pymc --user
and it seemed to be installed normally.However, when I import pymc in python shell, I get the follow error message. Not sure how to deal with this.
The text was updated successfully, but these errors were encountered: