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
Hi
I have successfully installed tensorflow and tf-quant-finance from source, however, when I want to run an example, I get an error about version mismatch of numpy.
$ python3 American_Option_Black_Scholes.py
2021-04-02 08:52:17.384836: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0
RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
Traceback (most recent call last):
File "American_Option_Black_Scholes.py", line 8, in <module>
import tensorflow as tf
File "/home/mnaderan/.local/lib/python3.8/site-packages/tensorflow/__init__.py", line 41, in <module>
from tensorflow.python.tools import module_util as _module_util
File "/home/mnaderan/.local/lib/python3.8/site-packages/tensorflow/python/__init__.py", line 40, in <module>
from tensorflow.python.eager import context
File "/home/mnaderan/.local/lib/python3.8/site-packages/tensorflow/python/eager/context.py", line 37, in <module>
from tensorflow.python.client import pywrap_tf_session
File "/home/mnaderan/.local/lib/python3.8/site-packages/tensorflow/python/client/pywrap_tf_session.py", line 23, in <module>
from tensorflow.python._pywrap_tf_session import *
ImportError: SystemError: <built-in method __contains__ of dict object at 0x7f4c43c1d600> returned a result with an error set
Hi
I have successfully installed tensorflow and tf-quant-finance from source, however, when I want to run an example, I get an error about version mismatch of numpy.
The versions are shown below
How can I fix that?
The text was updated successfully, but these errors were encountered: