当我尝试测试安装 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'
我也在网上看到了一些解决方案,但它们不能正常工作。我该如何克服它?
谢谢