Python version (e.g., Python 3.7.5): Python 3.7.17
OS platform and distribution (e.g., Linux Ubuntu 16.04): MacOS Sonoma 14.0
GCC/Compiler version (if compiled from source): N/A
Describe the current behavior
When attemping to import Mindspore this error occurs:
ModuleNotFoundError: No module named 'mindspore._c_expression'
Describe the expected behavior
This error should not occur and Mindspore should import correctly
Steps to reproduce the issue
Install Mindspore 1.5.2
Run python -c 'import mindspore'
Related log / screenshot
Full error:
File "<string>", line 1, in <module>
File "/Users/user/.pyenv/versions/MTFN3.7.17/lib/python3.7/site-packages/mindspore/__init__.py", line 18, in <module>
from . import common, train, log
File "/Users/user/.pyenv/versions/MTFN3.7.17/lib/python3.7/site-packages/mindspore/common/__init__.py", line 16, in <module>
from . import dtype
File "/Users/user/.pyenv/versions/MTFN3.7.17/lib/python3.7/site-packages/mindspore/common/dtype.py", line 20, in <module>
from .._c_expression import typing, EnvInstance_
ModuleNotFoundError: No module named 'mindspore._c_expression'
Special notes for this issue
I'm using pyenv, though as far as I know this shouldn't cause issue.
I've seen issue #19, but this doesn't seem to be the same problem as far as I can tell.
Hello, welcome to MindSpore. It is recommended that you try to install the latest version of MindSpore.Try to see if there's the same problem.
https://www.mindspore.cn/install
Environment
Hardware Environment(
Ascend
/GPU
/CPU
):Software Environment:
Describe the current behavior
When attemping to import Mindspore this error occurs:
ModuleNotFoundError: No module named 'mindspore._c_expression'
Describe the expected behavior
This error should not occur and Mindspore should import correctly
Steps to reproduce the issue
python -c 'import mindspore'
Related log / screenshot
Full error:
Special notes for this issue