python3.8 numpy==1.21.5 numba==0.55.1: ImportError: numpy.core.multiarray failed to import
See original GitHub issue$ python demo.py --cfg_file cfgs/kitti_models/pv_rcnn.yaml --ckpt pv_rcnn_8369.pth --data_path data/kitti/training/velodyne/000000.bin
RuntimeError: module compiled against API version 0xf but this version of numpy is 0xe
Traceback (most recent call last):
File "demo.py", line 18, in <module>
from pcdet.datasets import DatasetTemplate
File "/home/zonlin/IPP/OpenPCDet/pcdet/datasets/__init__.py", line 7, in <module>
from .dataset import DatasetTemplate
File "/home/zonlin/IPP/OpenPCDet/pcdet/datasets/dataset.py", line 14, in <module>
from augmentor.data_augmentor import DataAugmentor
File "/home/zonlin/IPP/OpenPCDet/pcdet/datasets/augmentor/data_augmentor.py", line 11, in <module>
import augmentor_utils, database_sampler
File "/home/zonlin/IPP/OpenPCDet/pcdet/datasets/augmentor/database_sampler.py", line 6, in <module>
import SharedArray
ImportError: numpy.core.multiarray failed to import
When I installed numpy==1.21.5 then it tells me numpy.core.multiarray failed to import
When I upgraded numpy to 1.22 then it tells me numba requires numpy<1.22
How can I solve this? Please…
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
ImportError: numpy.core.multiarray failed to import
I found the bad numpy version by using the following command in my Mac terminal: python -c "import numpy;print(numpy.__version__);print(numpy.__file__)";.
Read more >[Solved] ImportError: numpy.core.multiarray Failed to Import
ImportError : numpy.core.multiarray failed to import error. Follow these steps to solve the error. Open CLI and run the following command:
Read more >ImportError numpy core multiarray failed to import - Edureka
I am trying to import the cv2 module in Jupyter Notebook. But It is showing me the below error. import cv2 ImportError: numpy.core.multiarray...
Read more >ImportError: numpy.core.multiarray failed to import [cv2 ...
This error occurs because of an improper/incompatible version of NUMPY. As we all know that most of the machine learning and deep learning...
Read more >ImportError installing via PIP - Support - Numba Discussion
Blockquote $ python3.8 -m venv venv $ source venv/bin/activate $ pip install numba Collecting numba ... ImportError: numpy.core.multiarray failed to import.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
oh, i solved it. thanks XD my downgraded version is sharedarray==3.1.0 (i want someone to see this and get help)
Hello, You should degrade the ‘SharedArray’ package one version by one version, try all the versions. There aren’t too many choices. Soon it will works. Like from the latest version, to older one, to more older one…