A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.0 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "F:\anaconda\Lib\site-packages\ipykernel_launcher.py", line 17, in <module>
app.launch_new_instance()
File "F:\anaconda\Lib\site-packages\traitlets\config\application.py", line 1075, in launch_instance
app.start()
File "F:\anaconda\Lib\site-packages\ipykernel\kernelapp.py", line 701, in start
self.io_loop.start()
File "F:\anaconda\Lib\site-packages\tornado\platform\asyncio.py", line 205, in start
self.asyncio_loop.run_forever()
File "F:\anaconda\Lib\asyncio\windows_events.py", line 322, in run_forever
super().run_forever()
File "F:\anaconda\Lib\asyncio\base_events.py", line 641, in run_forever
self._run_once()
File "F:\anaconda\Lib\asyncio\base_events.py", line 1987, in _run_once
handle._run()
File "F:\anaconda\Lib\asyncio\events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "F:\anaconda\Lib\site-packages\ipykernel\kernelbase.py", line 534, in dispatch_queue
await self.process_one()
File "F:\anaconda\Lib\site-packages\ipykernel\kernelbase.py", line 523, in process_one
await dispatch(*args)
File "F:\anaconda\Lib\site-packages\ipykernel\kernelbase.py", line 429, in dispatch_shell
await result
File "F:\anaconda\Lib\site-packages\ipykernel\kernelbase.py", line 767, in execute_request
reply_content = await reply_content
File "F:\anaconda\Lib\site-packages\ipykernel\ipkernel.py", line 429, in do_execute
res = shell.run_cell(
File "F:\anaconda\Lib\site-packages\ipykernel\zmqshell.py", line 549, in run_cell
return super().run_cell(*args, **kwargs)
File "F:\anaconda\Lib\site-packages\IPython\core\interactiveshell.py", line 3075, in run_cell
result = self._run_cell(
File "F:\anaconda\Lib\site-packages\IPython\core\interactiveshell.py", line 3130, in _run_cell
result = runner(coro)
File "F:\anaconda\Lib\site-packages\IPython\core\async_helpers.py", line 129, in _pseudo_sync_runner
coro.send(None)
File "F:\anaconda\Lib\site-packages\IPython\core\interactiveshell.py", line 3334, in run_cell_async
has_raised = await self.run_ast_nodes(code_ast.body, cell_name,
File "F:\anaconda\Lib\site-packages\IPython\core\interactiveshell.py", line 3517, in run_ast_nodes
if await self.run_code(code, result, async_=asy):
File "F:\anaconda\Lib\site-packages\IPython\core\interactiveshell.py", line 3577, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "C:\Users\张宇\AppData\Local\Temp\ipykernel_25812\3580470148.py", line 2, in <module>
import pandas as pd
File "C:\Users\张宇\AppData\Roaming\Python\Python312\site-packages\pandas\__init__.py", line 61, in <module>
from pandas.core.api import (
File "C:\Users\张宇\AppData\Roaming\Python\Python312\site-packages\pandas\core\api.py", line 28, in <module>
from pandas.core.arrays import Categorical
File "C:\Users\张宇\AppData\Roaming\Python\Python312\site-packages\pandas\core\arrays\__init__.py", line 1, in <module>
from pandas.core.arrays.arrow import ArrowExtensionArray
File "C:\Users\张宇\AppData\Roaming\Python\Python312\site-packages\pandas\core\arrays\arrow\__init__.py", line 5, in <module>
from pandas.core.arrays.arrow.array import ArrowExtensionArray
File "C:\Users\张宇\AppData\Roaming\Python\Python312\site-packages\pandas\core\arrays\arrow\array.py", line 52, in <module>
from pandas.core import (
File "C:\Users\张宇\AppData\Roaming\Python\Python312\site-packages\pandas\core\ops\__init__.py", line 8, in <module>
from pandas.core.ops.array_ops import (
File "C:\Users\张宇\AppData\Roaming\Python\Python312\site-packages\pandas\core\ops\array_ops.py", line 56, in <module>
from pandas.core.computation import expressions
File "C:\Users\张宇\AppData\Roaming\Python\Python312\site-packages\pandas\core\computation\expressions.py", line 21, in <module>
from pandas.core.computation.check import NUMEXPR_INSTALLED
File "C:\Users\张宇\AppData\Roaming\Python\Python312\site-packages\pandas\core\computation\check.py", line 5, in <module>
ne = import_optional_dependency("numexpr", errors="warn")
File "C:\Users\张宇\AppData\Roaming\Python\Python312\site-packages\pandas\compat\_optional.py", line 135, in import_optional_dependency
module = importlib.import_module(name)
File "F:\anaconda\Lib\importlib\__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "F:\anaconda\Lib\site-packages\numexpr\__init__.py", line 24, in <module>
from numexpr.interpreter import MAX_THREADS, use_vml, __BLOCK_SIZE1__
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
AttributeError: _ARRAY_API not found
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.0 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "F:\anaconda\Lib\site-packages\ipykernel_launcher.py", line 17, in <module>
app.launch_new_instance()
File "F:\anaconda\Lib\site-packages\traitlets\config\application.py", line 1075, in launch_instance
app.start()
File "F:\anaconda\Lib\site-packages\ipykernel\kernelapp.py", line 701, in start
self.io_loop.start()
File "F:\anaconda\Lib\site-packages\tornado\platform\asyncio.py", line 205, in start
self.asyncio_loop.run_forever()
File "F:\anaconda\Lib\asyncio\windows_events.py", line 322, in run_forever
super().run_forever()
File "F:\anaconda\Lib\asyncio\base_events.py", line 641, in run_forever
self._run_once()
File "F:\anaconda\Lib\asyncio\base_events.py", line 1987, in _run_once
handle._run()
File "F:\anaconda\Lib\asyncio\events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "F:\anaconda\Lib\site-packages\ipykernel\kernelbase.py", line 534, in dispatch_queue
await self.process_one()
File "F:\anaconda\Lib\site-packages\ipykernel\kernelbase.py", line 523, in process_one
await dispatch(*args)
File "F:\anaconda\Lib\site-packages\ipykernel\kernelbase.py", line 429, in dispatch_shell
await result
File "F:\anaconda\Lib\site-packages\ipykernel\kernelbase.py", line 767, in execute_request
reply_content = await reply_content
File "F:\anaconda\Lib\site-packages\ipykernel\ipkernel.py", line 429, in do_execute
res = shell.run_cell(
File "F:\anaconda\Lib\site-packages\ipykernel\zmqshell.py", line 549, in run_cell
return super().run_cell(*args, **kwargs)
File "F:\anaconda\Lib\site-packages\IPython\core\interactiveshell.py", line 3075, in run_cell
result = self._run_cell(
File "F:\anaconda\Lib\site-packages\IPython\core\interactiveshell.py", line 3130, in _run_cell
result = runner(coro)
File "F:\anaconda\Lib\site-packages\IPython\core\async_helpers.py", line 129, in _pseudo_sync_runner
coro.send(None)
File "F:\anaconda\Lib\site-packages\IPython\core\interactiveshell.py", line 3334, in run_cell_async
has_raised = await self.run_ast_nodes(code_ast.body, cell_name,
File "F:\anaconda\Lib\site-packages\IPython\core\interactiveshell.py", line 3517, in run_ast_nodes
if await self.run_code(code, result, async_=asy):
File "F:\anaconda\Lib\site-packages\IPython\core\interactiveshell.py", line 3577, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "C:\Users\张宇\AppData\Local\Temp\ipykernel_25812\3580470148.py", line 2, in <module>
import pandas as pd
File "C:\Users\张宇\AppData\Roaming\Python\Python312\site-packages\pandas\__init__.py", line 61, in <module>
from pandas.core.api import (
File "C:\Users\张宇\AppData\Roaming\Python\Python312\site-packages\pandas\core\api.py", line 28, in <module>
from pandas.core.arrays import Categorical
File "C:\Users\张宇\AppData\Roaming\Python\Python312\site-packages\pandas\core\arrays\__init__.py", line 1, in <module>
from pandas.core.arrays.arrow import ArrowExtensionArray
File "C:\Users\张宇\AppData\Roaming\Python\Python312\site-packages\pandas\core\arrays\arrow\__init__.py", line 5, in <module>
from pandas.core.arrays.arrow.array import ArrowExtensionArray
File "C:\Users\张宇\AppData\Roaming\Python\Python312\site-packages\pandas\core\arrays\arrow\array.py", line 66, in <module>
from pandas.core.arrays.masked import BaseMaskedArray
File "C:\Users\张宇\AppData\Roaming\Python\Python312\site-packages\pandas\core\arrays\masked.py", line 61, in <module>
from pandas.core import (
File "C:\Users\张宇\AppData\Roaming\Python\Python312\site-packages\pandas\core\nanops.py", line 52, in <module>
bn = import_optional_dependency("bottleneck", errors="warn")
File "C:\Users\张宇\AppData\Roaming\Python\Python312\site-packages\pandas\compat\_optional.py", line 135, in import_optional_dependency
module = importlib.import_module(name)
File "F:\anaconda\Lib\importlib\__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "F:\anaconda\Lib\site-packages\bottleneck\__init__.py", line 7, in <module>
from .move import (move_argmax, move_argmin, move_max, move_mean, move_median,
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
File ~\AppData\Roaming\Python\Python312\site-packages\numpy\core\_multiarray_umath.py:44, in __getattr__(attr_name)
39 # Also print the message (with traceback). This is because old versions
40 # of NumPy unfortunately set up the import to replace (and hide) the
41 # error. The traceback shouldn't be needed, but e.g. pytest plugins
42 # seem to swallow it and we should be failing anyway...
43 sys.stderr.write(msg + tb_msg)
---> 44 raise ImportError(msg)
46 ret = getattr(_multiarray_umath, attr_name, None)
47 if ret is None:
ImportError:
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.0 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.0 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "F:\anaconda\Lib\site-packages\ipykernel_launcher.py", line 17, in <module>
app.launch_new_instance()
File "F:\anaconda\Lib\site-packages\traitlets\config\application.py", line 1075, in launch_instance
app.start()
File "F:\anaconda\Lib\site-packages\ipykernel\kernelapp.py", line 701, in start
self.io_loop.start()
File "F:\anaconda\Lib\site-packages\tornado\platform\asyncio.py", line 205, in start
self.asyncio_loop.run_forever()
File "F:\anaconda\Lib\asyncio\windows_events.py", line 322, in run_forever
super().run_forever()
File "F:\anaconda\Lib\asyncio\base_events.py", line 641, in run_forever
self._run_once()
File "F:\anaconda\Lib\asyncio\base_events.py", line 1987, in _run_once
handle._run()
File "F:\anaconda\Lib\asyncio\events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "F:\anaconda\Lib\site-packages\ipykernel\kernelbase.py", line 534, in dispatch_queue
await self.process_one()
File "F:\anaconda\Lib\site-packages\ipykernel\kernelbase.py", line 523, in process_one
await dispatch(*args)
File "F:\anaconda\Lib\site-packages\ipykernel\kernelbase.py", line 429, in dispatch_shell
await result
File "F:\anaconda\Lib\site-packages\ipykernel\kernelbase.py", line 767, in execute_request
reply_content = await reply_content
File "F:\anaconda\Lib\site-packages\ipykernel\ipkernel.py", line 429, in do_execute
res = shell.run_cell(
File "F:\anaconda\Lib\site-packages\ipykernel\zmqshell.py", line 549, in run_cell
return super().run_cell(*args, **kwargs)
File "F:\anaconda\Lib\site-packages\IPython\core\interactiveshell.py", line 3075, in run_cell
result = self._run_cell(
File "F:\anaconda\Lib\site-packages\IPython\core\interactiveshell.py", line 3130, in _run_cell
result = runner(coro)
File "F:\anaconda\Lib\site-packages\IPython\core\async_helpers.py", line 129, in _pseudo_sync_runner
coro.send(None)
File "F:\anaconda\Lib\site-packages\IPython\core\interactiveshell.py", line 3334, in run_cell_async
has_raised = await self.run_ast_nodes(code_ast.body, cell_name,
File "F:\anaconda\Lib\site-packages\IPython\core\interactiveshell.py", line 3517, in run_ast_nodes
if await self.run_code(code, result, async_=asy):
File "F:\anaconda\Lib\site-packages\IPython\core\interactiveshell.py", line 3577, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "C:\Users\张宇\AppData\Local\Temp\ipykernel_25812\3580470148.py", line 3, in <module>
import matplotlib.pyplot as plt
File "F:\anaconda\Lib\site-packages\matplotlib\__init__.py", line 161, in <module>
from . import _api, _version, cbook, _docstring, rcsetup
File "F:\anaconda\Lib\site-packages\matplotlib\rcsetup.py", line 27, in <module>
from matplotlib.colors import Colormap, is_color_like
File "F:\anaconda\Lib\site-packages\matplotlib\colors.py", line 57, in <module>
from matplotlib import _api, _cm, cbook, scale
File "F:\anaconda\Lib\site-packages\matplotlib\scale.py", line 22, in <module>
from matplotlib.ticker import (
File "F:\anaconda\Lib\site-packages\matplotlib\ticker.py", line 143, in <module>
from matplotlib import transforms as mtransforms
File "F:\anaconda\Lib\site-packages\matplotlib\transforms.py", line 49, in <module>
from matplotlib._path import (
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
File ~\AppData\Roaming\Python\Python312\site-packages\numpy\core\_multiarray_umath.py:44, in __getattr__(attr_name)
39 # Also print the message (with traceback). This is because old versions
40 # of NumPy unfortunately set up the import to replace (and hide) the
41 # error. The traceback shouldn't be needed, but e.g. pytest plugins
42 # seem to swallow it and we should be failing anyway...
43 sys.stderr.write(msg + tb_msg)
---> 44 raise ImportError(msg)
46 ret = getattr(_multiarray_umath, attr_name, None)
47 if ret is None:
ImportError:
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.0 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.