Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Successfully installed but can't import #195

Open
ghost opened this issue Mar 25, 2020 · 1 comment
Open

Successfully installed but can't import #195

ghost opened this issue Mar 25, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Mar 25, 2020

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

@ghost ghost changed the title def await(self): ^ SyntaxError: invalid syntax Successfully installed but can't import Mar 25, 2020
@pilemendoza
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant