cannot import name 'string' from 'numba'
时间: 2023-10-14 21:07:12 浏览: 43
As an AI language model, I don't have access to your specific code or environment. However, the error message you're seeing suggests that there's an issue with the way you're importing the `string` module from `numba`.
One possible cause of this error is that you're trying to import `string` from `numba`, but `numba` doesn't actually have a `string` module. To verify this, you could try looking at the documentation for `numba` to see if it has a `string` module, or you could try importing other modules from `numba` to see if they work.
Another possible cause of this error is that there's a naming conflict between the `string` module in `numba` and another `string` module that you're importing from somewhere else in your code. In this case, you could try renaming one of the modules to avoid the conflict.
Without more information about your specific code and environment, it's difficult to provide a more specific solution to this error.