尝试以以下方式测试onnx时出现错误:
(base) C:\Users\skoppuravuri>python -c "import onnx"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\skoppuravuri\AppData\Local\Continuum\anaconda3\lib\site-packages\onnx\__init__.py", line 10, in <module>
import onnx.helper # noqa
File "C:\Users\skoppuravuri\AppData\Local\Continuum\anaconda3\lib\site-packages\onnx\helper.py", line 16, in <module>
from onnx import mapping
File "C:\Users\skoppuravuri\AppData\Local\Continuum\anaconda3\lib\site-packages\onnx\mapping.py", line 10, in <module>
TensorProto.FLOAT: np.dtype('float32'),
AttributeError: module 'numpy' has no attribute 'dtype'
我还在线上看到了一些解决方案,但是它们无法正常工作。我该如何克服?
谢谢