from numpy.typing import NDArray
ModuleNotFoundError: No module named 'numpy.typing'
Process finished with exit code 1
pip install -U numpy
(AAA) PS C:\PycharmProjects\pythonProject> pip install -U numpy
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Requirement already satisfied: numpy in c:\users\BBB\anaconda3\envs\morl\lib\site-packages (1.19.4)
Collecting numpy
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/69/65/0d47953afa0ad569d12de5f65d964321c208492064c38fe3b0b9744f8d44/numpy-1.24.4-cp38-cp38-win_amd64.whl (14.9 MB)
Installing collected packages: numpy
Attempting uninstall: numpy
Found existing installation: numpy 1.19.4
Uninstalling numpy-1.19.4:
Successfully uninstalled numpy-1.19.4
错误解决!!!