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
{{ message }}
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.
I am trying to run the file in the colab. However, it doesn't seem to work:
When I tried to run the following:
import numpy as np
%matplotlib inline
import matplotlib.pyplot as plt
from IPython import display
from utils import plotting # plotting utilities for visualizing env. state
Only error result:
RuntimeError Traceback (most recent call last)
RuntimeError: module compiled against API version 0xf but this version of numpy is 0xe
ImportError Traceback (most recent call last) in
1 import numpy as np
----> 2 get_ipython().run_line_magic('matplotlib', 'inline')
3 import matplotlib.pyplot as plt
4 from IPython import display
5 from utils import plotting # plotting utilities for visualizing env. state
8 frames /usr/local/lib/python3.9/dist-packages/matplotlib/init.py in _check_versions()
190 # Quickfix to ensure Microsoft Visual C++ redistributable
191 # DLLs are loaded before importing kiwisolver
--> 192 from . import ft2font
193
194 for modname, minver in [
ImportError: numpy.core.multiarray failed to import
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.
I am trying to run the file in the colab. However, it doesn't seem to work:
When I tried to run the following:
import numpy as np
%matplotlib inline
import matplotlib.pyplot as plt
from IPython import display
from utils import plotting # plotting utilities for visualizing env. state
Only error result:
RuntimeError Traceback (most recent call last)
RuntimeError: module compiled against API version 0xf but this version of numpy is 0xe
ImportError Traceback (most recent call last)
in
1 import numpy as np
----> 2 get_ipython().run_line_magic('matplotlib', 'inline')
3 import matplotlib.pyplot as plt
4 from IPython import display
5 from utils import plotting # plotting utilities for visualizing env. state
8 frames
/usr/local/lib/python3.9/dist-packages/matplotlib/init.py in _check_versions()
190 # Quickfix to ensure Microsoft Visual C++ redistributable
191 # DLLs are loaded before importing kiwisolver
--> 192 from . import ft2font
193
194 for modname, minver in [
ImportError: numpy.core.multiarray failed to import
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.
https://colab.research.google.com/github/salesforce/ai-economist/blob/master/tutorials/economic_simulation_basic.ipynb#scrollTo=w4ROkAd60Gve&line=1&uniqifier=1
Is there anyone facing the same problem or just me?
The text was updated successfully, but these errors were encountered: