pymc-devs / pymc2

THIS IS THE **OLD** PYMC PROJECT (VERSION 2). PLEASE USE PYMC INSTEAD:
http://pymc-devs.github.com/pymc/
Other
879 stars 229 forks source link

Successfully installed but can't import #195

Open ghost opened 4 years ago

ghost commented 4 years ago

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

pilemendoza commented 3 years ago

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 ....