You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
%matplotlib inline
Here is the error:
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 "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel_launcher.py", line 17, in
app.launch_new_instance()
File "C:\Users\alexe\anaconda3\Lib\site-packages\traitlets\config\application.py", line 1075, in launch_instance
app.start()
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelapp.py", line 701, in start
self.io_loop.start()
File "C:\Users\alexe\anaconda3\Lib\site-packages\tornado\platform\asyncio.py", line 205, in start
self.asyncio_loop.run_forever()
File "C:\Users\alexe\anaconda3\Lib\asyncio\windows_events.py", line 322, in run_forever
super().run_forever()
File "C:\Users\alexe\anaconda3\Lib\asyncio\base_events.py", line 641, in run_forever
self._run_once()
File "C:\Users\alexe\anaconda3\Lib\asyncio\base_events.py", line 1986, in _run_once
handle._run()
File "C:\Users\alexe\anaconda3\Lib\asyncio\events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 534, in dispatch_queue
await self.process_one()
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 523, in process_one
await dispatch(*args)
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 429, in dispatch_shell
await result
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 767, in execute_request
reply_content = await reply_content
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\ipkernel.py", line 429, in do_execute
res = shell.run_cell(
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\zmqshell.py", line 549, in run_cell
return super().run_cell(*args, **kwargs)
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3075, in run_cell
result = self._run_cell(
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3130, in _run_cell
result = runner(coro)
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\async_helpers.py", line 128, in _pseudo_sync_runner
coro.send(None)
File "C:\Users\alexe\anaconda3\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 "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3517, in run_ast_nodes
if await self.run_code(code, result, async_=asy):
File "C:\Users\alexe\anaconda3\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\alexe\AppData\Local\Temp\ipykernel_9096\191887921.py", line 3, in
import pandas as pd
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\__init__.py", line 39, in
from pandas.compat import (
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\compat\__init__.py", line 27, in
from pandas.compat.pyarrow import (
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\compat\pyarrow.py", line 8, in
import pyarrow as pa
File "C:\Users\alexe\anaconda3\Lib\site-packages\pyarrow\__init__.py", line 65, in
import pyarrow.lib as _lib
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
File ~\anaconda3\Lib\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 "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel_launcher.py", line 17, in
app.launch_new_instance()
File "C:\Users\alexe\anaconda3\Lib\site-packages\traitlets\config\application.py", line 1075, in launch_instance
app.start()
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelapp.py", line 701, in start
self.io_loop.start()
File "C:\Users\alexe\anaconda3\Lib\site-packages\tornado\platform\asyncio.py", line 205, in start
self.asyncio_loop.run_forever()
File "C:\Users\alexe\anaconda3\Lib\asyncio\windows_events.py", line 322, in run_forever
super().run_forever()
File "C:\Users\alexe\anaconda3\Lib\asyncio\base_events.py", line 641, in run_forever
self._run_once()
File "C:\Users\alexe\anaconda3\Lib\asyncio\base_events.py", line 1986, in _run_once
handle._run()
File "C:\Users\alexe\anaconda3\Lib\asyncio\events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 534, in dispatch_queue
await self.process_one()
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 523, in process_one
await dispatch(*args)
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 429, in dispatch_shell
await result
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 767, in execute_request
reply_content = await reply_content
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\ipkernel.py", line 429, in do_execute
res = shell.run_cell(
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\zmqshell.py", line 549, in run_cell
return super().run_cell(*args, **kwargs)
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3075, in run_cell
result = self._run_cell(
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3130, in run_cell
result = runner(coro)
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\async_helpers.py", line 128, in pseudo_sync_runner
coro.send(None)
File "C:\Users\alexe\anaconda3\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 "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3517, in run_ast_nodes
if await self.run_code(code, result, async=asy):
File "C:\Users\alexe\anaconda3\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\alexe\AppData\Local\Temp\ipykernel_9096\191887921.py", line 3, in
import pandas as pd
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas_init.py", line 62, in
from pandas.core.api import (
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\core\api.py", line 9, in
from pandas.core.dtypes.dtypes import (
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\core\dtypes\dtypes.py", line 24, in
from pandas.libs import (
File "C:\Users\alexe\anaconda3\Lib\site-packages\pyarrow_init.py", line 65, in
import pyarrow.lib as _lib
ImportError Traceback (most recent call last)
File ~\anaconda3\Lib\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 "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel_launcher.py", line 17, in
app.launch_new_instance()
File "C:\Users\alexe\anaconda3\Lib\site-packages\traitlets\config\application.py", line 1075, in launch_instance
app.start()
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelapp.py", line 701, in start
self.io_loop.start()
File "C:\Users\alexe\anaconda3\Lib\site-packages\tornado\platform\asyncio.py", line 205, in start
self.asyncio_loop.run_forever()
File "C:\Users\alexe\anaconda3\Lib\asyncio\windows_events.py", line 322, in run_forever
super().run_forever()
File "C:\Users\alexe\anaconda3\Lib\asyncio\base_events.py", line 641, in run_forever
self._run_once()
File "C:\Users\alexe\anaconda3\Lib\asyncio\base_events.py", line 1986, in _run_once
handle._run()
File "C:\Users\alexe\anaconda3\Lib\asyncio\events.py", line 88, in _run
self.context.run(self.callback, *self.args)
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 534, in dispatch_queue
await self.process_one()
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 523, in process_one
await dispatch(*args)
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 429, in dispatch_shell
await result
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 767, in execute_request
reply_content = await reply_content
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\ipkernel.py", line 429, in do_execute
res = shell.run_cell(
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\zmqshell.py", line 549, in run_cell
return super().run_cell(*args, **kwargs)
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3075, in run_cell
result = self.run_cell(
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3130, in run_cell
result = runner(coro)
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\async_helpers.py", line 128, in pseudo_sync_runner
coro.send(None)
File "C:\Users\alexe\anaconda3\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 "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3517, in run_ast_nodes
if await self.run_code(code, result, async=asy):
File "C:\Users\alexe\anaconda3\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\alexe\AppData\Local\Temp\ipykernel_9096\191887921.py", line 3, in
import pandas as pd
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas_init.py", line 62, in
from pandas.core.api import (
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\core\api.py", line 28, in
from pandas.core.arrays import Categorical
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\core\arrays_init.py", line 1, in
from pandas.core.arrays.arrow import ArrowExtensionArray
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\core\arrays\arrow_init.py", line 5, in
from pandas.core.arrays.arrow.array import ArrowExtensionArray
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\core\arrays\arrow\array.py", line 50, in
from pandas.core import (
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\core\ops_init.py", line 8, in
from pandas.core.ops.array_ops import (
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\core\ops\array_ops.py", line 56, in
from pandas.core.computation import expressions
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\core\computation\expressions.py", line 21, in
from pandas.core.computation.check import NUMEXPR_INSTALLED
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\core\computation\check.py", line 5, in
ne = import_optional_dependency("numexpr", errors="warn")
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\compat_optional.py", line 135, in import_optional_dependency
module = importlib.import_module(name)
File "C:\Users\alexe\anaconda3\Lib\importlib_init.py", line 90, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "C:\Users\alexe\anaconda3\Lib\site-packages\numexpr_init.py", line 24, in
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 "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel_launcher.py", line 17, in
app.launch_new_instance()
File "C:\Users\alexe\anaconda3\Lib\site-packages\traitlets\config\application.py", line 1075, in launch_instance
app.start()
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelapp.py", line 701, in start
self.io_loop.start()
File "C:\Users\alexe\anaconda3\Lib\site-packages\tornado\platform\asyncio.py", line 205, in start
self.asyncio_loop.run_forever()
File "C:\Users\alexe\anaconda3\Lib\asyncio\windows_events.py", line 322, in run_forever
super().run_forever()
File "C:\Users\alexe\anaconda3\Lib\asyncio\base_events.py", line 641, in run_forever
self._run_once()
File "C:\Users\alexe\anaconda3\Lib\asyncio\base_events.py", line 1986, in _run_once
handle._run()
File "C:\Users\alexe\anaconda3\Lib\asyncio\events.py", line 88, in _run
self._context.run(self.callback, *self.args)
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 534, in dispatch_queue
await self.process_one()
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 523, in process_one
await dispatch(*args)
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 429, in dispatch_shell
await result
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 767, in execute_request
reply_content = await reply_content
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\ipkernel.py", line 429, in do_execute
res = shell.run_cell(
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\zmqshell.py", line 549, in run_cell
return super().run_cell(*args, **kwargs)
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3075, in run_cell
result = self.run_cell(
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3130, in run_cell
result = runner(coro)
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\async_helpers.py", line 128, in pseudo_sync_runner
coro.send(None)
File "C:\Users\alexe\anaconda3\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 "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3517, in run_ast_nodes
if await self.run_code(code, result, async=asy):
File "C:\Users\alexe\anaconda3\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\alexe\AppData\Local\Temp\ipykernel_9096\191887921.py", line 3, in
import pandas as pd
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas_init.py", line 62, in
from pandas.core.api import (
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\core\api.py", line 28, in
from pandas.core.arrays import Categorical
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\core\arrays_init.py", line 1, in
from pandas.core.arrays.arrow import ArrowExtensionArray
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\core\arrays\arrow_init.py", line 5, in
from pandas.core.arrays.arrow.array import ArrowExtensionArray
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\core\arrays\arrow\array.py", line 64, in
from pandas.core.arrays.masked import BaseMaskedArray
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\core\arrays\masked.py", line 60, in
from pandas.core import (
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\core\nanops.py", line 52, in
bn = import_optional_dependency("bottleneck", errors="warn")
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\compat_optional.py", line 135, in import_optional_dependency
module = importlib.import_module(name)
File "C:\Users\alexe\anaconda3\Lib\importlib_init.py", line 90, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "C:\Users\alexe\anaconda3\Lib\site-packages\bottleneck_init.py", line 7, in
from .move import (move_argmax, move_argmin, move_max, move_mean, move_median,
ImportError Traceback (most recent call last)
File ~\anaconda3\Lib\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 "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel_launcher.py", line 17, in
app.launch_new_instance()
File "C:\Users\alexe\anaconda3\Lib\site-packages\traitlets\config\application.py", line 1075, in launch_instance
app.start()
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelapp.py", line 701, in start
self.io_loop.start()
File "C:\Users\alexe\anaconda3\Lib\site-packages\tornado\platform\asyncio.py", line 205, in start
self.asyncio_loop.run_forever()
File "C:\Users\alexe\anaconda3\Lib\asyncio\windows_events.py", line 322, in run_forever
super().run_forever()
File "C:\Users\alexe\anaconda3\Lib\asyncio\base_events.py", line 641, in run_forever
self._run_once()
File "C:\Users\alexe\anaconda3\Lib\asyncio\base_events.py", line 1986, in _run_once
handle._run()
File "C:\Users\alexe\anaconda3\Lib\asyncio\events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 534, in dispatch_queue
await self.process_one()
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 523, in process_one
await dispatch(*args)
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 429, in dispatch_shell
await result
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 767, in execute_request
reply_content = await reply_content
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\ipkernel.py", line 429, in do_execute
res = shell.run_cell(
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\zmqshell.py", line 549, in run_cell
return super().run_cell(*args, **kwargs)
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3075, in run_cell
result = self._run_cell(
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3130, in run_cell
result = runner(coro)
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\async_helpers.py", line 128, in pseudo_sync_runner
coro.send(None)
File "C:\Users\alexe\anaconda3\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 "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3517, in run_ast_nodes
if await self.run_code(code, result, async=asy):
File "C:\Users\alexe\anaconda3\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\alexe\AppData\Local\Temp\ipykernel_9096\191887921.py", line 5, in
import seaborn as sns
File "C:\Users\alexe\anaconda3\Lib\site-packages\seaborn_init.py", line 5, in
from .relational import * # noqa: F401,F403
File "C:\Users\alexe\anaconda3\Lib\site-packages\seaborn\relational.py", line 21, in
from .statistics import EstimateAggregator, WeightedAggregator
File "C:\Users\alexe\anaconda3\Lib\site-packages\seaborn_statistics.py", line 32, in
from scipy.stats import gaussian_kde
File "C:\Users\alexe\anaconda3\Lib\site-packages\scipy\stats_init.py", line 606, in
from .stats_py import *
File "C:\Users\alexe\anaconda3\Lib\site-packages\scipy\stats_stats_py.py", line 37, in
from scipy import sparse
File "C:\Users\alexe\anaconda3\Lib\site-packages\scipy_init.py", line 134, in getattr
return importlib.import_module(f'scipy.{name}')
File "C:\Users\alexe\anaconda3\Lib\importlib_init.py", line 90, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "C:\Users\alexe\anaconda3\Lib\site-packages\scipy\sparse_init.py", line 295, in
from ._csr import *
File "C:\Users\alexe\anaconda3\Lib\site-packages\scipy\sparse_csr.py", line 11, in
from ._sparsetools import (csr_tocsc, csr_tobsr, csr_count_blocks,
ImportError Traceback (most recent call last)
File ~\anaconda3\Lib\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 "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel_launcher.py", line 17, in
app.launch_new_instance()
File "C:\Users\alexe\anaconda3\Lib\site-packages\traitlets\config\application.py", line 1075, in launch_instance
app.start()
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelapp.py", line 701, in start
self.io_loop.start()
File "C:\Users\alexe\anaconda3\Lib\site-packages\tornado\platform\asyncio.py", line 205, in start
self.asyncio_loop.run_forever()
File "C:\Users\alexe\anaconda3\Lib\asyncio\windows_events.py", line 322, in run_forever
super().run_forever()
File "C:\Users\alexe\anaconda3\Lib\asyncio\base_events.py", line 641, in run_forever
self._run_once()
File "C:\Users\alexe\anaconda3\Lib\asyncio\base_events.py", line 1986, in _run_once
handle._run()
File "C:\Users\alexe\anaconda3\Lib\asyncio\events.py", line 88, in _run
self._context.run(self.callback, *self.args)
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 534, in dispatch_queue
await self.process_one()
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 523, in process_one
await dispatch(*args)
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 429, in dispatch_shell
await result
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 767, in execute_request
reply_content = await reply_content
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\ipkernel.py", line 429, in do_execute
res = shell.run_cell(
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\zmqshell.py", line 549, in run_cell
return super().run_cell(*args, **kwargs)
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3075, in run_cell
result = self.run_cell(
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3130, in run_cell
result = runner(coro)
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\async_helpers.py", line 128, in pseudo_sync_runner
coro.send(None)
File "C:\Users\alexe\anaconda3\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 "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3517, in run_ast_nodes
if await self.run_code(code, result, async=asy):
File "C:\Users\alexe\anaconda3\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\alexe\AppData\Local\Temp\ipykernel_9096\191887921.py", line 5, in
import seaborn as sns
File "C:\Users\alexe\anaconda3\Lib\site-packages\seaborn_init.py", line 6, in
from .regression import * # noqa: F401,F403
File "C:\Users\alexe\anaconda3\Lib\site-packages\seaborn\regression.py", line 11, in
import statsmodels
File "C:\Users\alexe\anaconda3\Lib\site-packages\statsmodels_init.py", line 1, in
from statsmodels.compat.patsy import monkey_patch_cat_dtype
File "C:\Users\alexe\anaconda3\Lib\site-packages\statsmodels\compat_init.py", line 1, in
from statsmodels.tools.testing import PytestTester
File "C:\Users\alexe\anaconda3\Lib\site-packages\statsmodels\tools_init.py", line 1, in
from .tools import add_constant, categorical
File "C:\Users\alexe\anaconda3\Lib\site-packages\statsmodels\tools\tools.py", line 6, in
import scipy.linalg
File "C:\Users\alexe\anaconda3\Lib\site-packages\scipy\linalg_init.py", line 203, in
from ._misc import *
File "C:\Users\alexe\anaconda3\Lib\site-packages\scipy\linalg_misc.py", line 3, in
from .blas import get_blas_funcs
File "C:\Users\alexe\anaconda3\Lib\site-packages\scipy\linalg\blas.py", line 213, in
from scipy.linalg import _fblas
ImportError Traceback (most recent call last)
File ~\anaconda3\Lib\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 "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel_launcher.py", line 17, in
app.launch_new_instance()
File "C:\Users\alexe\anaconda3\Lib\site-packages\traitlets\config\application.py", line 1075, in launch_instance
app.start()
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelapp.py", line 701, in start
self.io_loop.start()
File "C:\Users\alexe\anaconda3\Lib\site-packages\tornado\platform\asyncio.py", line 205, in start
self.asyncio_loop.run_forever()
File "C:\Users\alexe\anaconda3\Lib\asyncio\windows_events.py", line 322, in run_forever
super().run_forever()
File "C:\Users\alexe\anaconda3\Lib\asyncio\base_events.py", line 641, in run_forever
self._run_once()
File "C:\Users\alexe\anaconda3\Lib\asyncio\base_events.py", line 1986, in _run_once
handle._run()
File "C:\Users\alexe\anaconda3\Lib\asyncio\events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 534, in dispatch_queue
await self.process_one()
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 523, in process_one
await dispatch(*args)
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 429, in dispatch_shell
await result
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 767, in execute_request
reply_content = await reply_content
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\ipkernel.py", line 429, in do_execute
res = shell.run_cell(
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\zmqshell.py", line 549, in run_cell
return super().run_cell(*args, **kwargs)
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3075, in run_cell
result = self._run_cell(
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3130, in run_cell
result = runner(coro)
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\async_helpers.py", line 128, in pseudo_sync_runner
coro.send(None)
File "C:\Users\alexe\anaconda3\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 "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3517, in run_ast_nodes
if await self.run_code(code, result, async=asy):
File "C:\Users\alexe\anaconda3\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\alexe\AppData\Local\Temp\ipykernel_9096\191887921.py", line 5, in
import seaborn as sns
File "C:\Users\alexe\anaconda3\Lib\site-packages\seaborn_init.py", line 7, in
from .categorical import * # noqa: F401,F403
File "C:\Users\alexe\anaconda3\Lib\site-packages\seaborn\categorical.py", line 19, in
from seaborn.stats.density import KDE
File "C:\Users\alexe\anaconda3\Lib\site-packages\seaborn_stats\density.py", line 10, in
from scipy.stats import gaussian_kde
File "C:\Users\alexe\anaconda3\Lib\site-packages\scipy\stats_init.py", line 606, in
from .stats_py import *
File "C:\Users\alexe\anaconda3\Lib\site-packages\scipy\stats_stats_py.py", line 37, in
from scipy import sparse
File "C:\Users\alexe\anaconda3\Lib\site-packages\scipy_init.py", line 134, in getattr
return importlib.import_module(f'scipy.{name}')
File "C:\Users\alexe\anaconda3\Lib\importlib_init.py", line 90, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "C:\Users\alexe\anaconda3\Lib\site-packages\scipy\sparse_init.py", line 295, in
from ._csr import *
File "C:\Users\alexe\anaconda3\Lib\site-packages\scipy\sparse_csr.py", line 11, in
from ._sparsetools import (csr_tocsc, csr_tobsr, csr_count_blocks,
ImportError Traceback (most recent call last)
File ~\anaconda3\Lib\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.
ValueError Traceback (most recent call last)
Cell In[1], line 5
3 import pandas as pd
4 import matplotlib.pyplot as plt
----> 5 import seaborn as sns
6 get_ipython().run_line_magic('matplotlib', 'inline')
File ~\anaconda3\Lib\site-packages\seaborn_init_.py:9
7 from .categorical import * # noqa: F401,F403
8 from .distributions import * # noqa: F401,F403
----> 9 from .matrix import * # noqa: F401,F403
10 from .miscplot import * # noqa: F401,F403
11 from .axisgrid import * # noqa: F401,F403
File ~\anaconda3\Lib\site-packages\scipy\cluster_init_.py:27
1 """
2 =========================================
3 Clustering package (:mod:scipy.cluster)
(...)
23
24 """
25 all = ['vq', 'hierarchy']
---> 27 from . import vq, hierarchy
29 from scipy._lib._testutils import PytestTester
30 test = PytestTester(name)
File ~\anaconda3\Lib\site-packages\scipy\cluster\vq.py:74
70 from scipy._lib._array_api import (
71 _asarray, array_namespace, size, atleast_nd, copy, cov
72 )
73 from scipy._lib._util import check_random_state, rng_integers
---> 74 from scipy.spatial.distance import cdist
76 from . import _vq
78 docformat = 'restructuredtext'
File ~\anaconda3\Lib\site-packages\scipy\spatial_init_.py:110
1 """
2 =============================================================
3 Spatial algorithms and data structures (:mod:scipy.spatial)
(...)
107 QhullError
108 """ # noqa: E501
--> 110 from ._kdtree import *
111 from ._ckdtree import *
112 from ._qhull import *
File ~\anaconda3\Lib\site-packages\scipy\spatial_kdtree.py:4
1 # Copyright Anne M. Archibald 2008
2 # Released under the scipy license
3 import numpy as np
----> 4 from ._ckdtree import cKDTree, cKDTreeNode
6 all = ['minkowski_distance_p', 'minkowski_distance',
7 'distance_matrix',
8 'Rectangle', 'KDTree']
11 def minkowski_distance_p(x, y, p=2):
File _ckdtree.pyx:1, in init scipy.spatial._ckdtree()
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
The text was updated successfully, but these errors were encountered:
Hi @alexesteele, since it looks like this issue is not likely specific to Jupyter Notebook, I will close this issue here. I think having a look at the NumPy repository to see if you find any issues like this one reported there.
I tried inputting a code on Jupyter Notebook ver 7.2.2, but I am encountering problems.
I am currently using Windows 11 on a Surface Pro 9.
I tried this solution out on anaconda_prompt ver 1.1.0 in this order.
C:\Users\alexe>pip install --upgrade numpy matplotlib pandas seaborn
C:\Users\alexe>pip uninstall numpy matplotlib pandas seaborn
C:\Users\alexe>pip install numpy<2 matplotlib pandas seaborn
C:\Users\alexe>pip install numpy ==2.0
Any help will be appreciated
Here is the code:
Import packages
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
%matplotlib inline
Here is the error:
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.
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 "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel_launcher.py", line 17, in
app.launch_new_instance()
File "C:\Users\alexe\anaconda3\Lib\site-packages\traitlets\config\application.py", line 1075, in launch_instance
app.start()
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelapp.py", line 701, in start
self.io_loop.start()
File "C:\Users\alexe\anaconda3\Lib\site-packages\tornado\platform\asyncio.py", line 205, in start
self.asyncio_loop.run_forever()
File "C:\Users\alexe\anaconda3\Lib\asyncio\windows_events.py", line 322, in run_forever
super().run_forever()
File "C:\Users\alexe\anaconda3\Lib\asyncio\base_events.py", line 641, in run_forever
self._run_once()
File "C:\Users\alexe\anaconda3\Lib\asyncio\base_events.py", line 1986, in _run_once
handle._run()
File "C:\Users\alexe\anaconda3\Lib\asyncio\events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 534, in dispatch_queue
await self.process_one()
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 523, in process_one
await dispatch(*args)
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 429, in dispatch_shell
await result
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 767, in execute_request
reply_content = await reply_content
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\ipkernel.py", line 429, in do_execute
res = shell.run_cell(
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\zmqshell.py", line 549, in run_cell
return super().run_cell(*args, **kwargs)
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3075, in run_cell
result = self._run_cell(
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3130, in run_cell
result = runner(coro)
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\async_helpers.py", line 128, in pseudo_sync_runner
coro.send(None)
File "C:\Users\alexe\anaconda3\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 "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3517, in run_ast_nodes
if await self.run_code(code, result, async=asy):
File "C:\Users\alexe\anaconda3\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\alexe\AppData\Local\Temp\ipykernel_9096\191887921.py", line 3, in
import pandas as pd
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas_init.py", line 62, in
from pandas.core.api import (
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\core\api.py", line 9, in
from pandas.core.dtypes.dtypes import (
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\core\dtypes\dtypes.py", line 24, in
from pandas.libs import (
File "C:\Users\alexe\anaconda3\Lib\site-packages\pyarrow_init.py", line 65, in
import pyarrow.lib as _lib
ImportError Traceback (most recent call last)
File ~\anaconda3\Lib\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 "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel_launcher.py", line 17, in
app.launch_new_instance()
File "C:\Users\alexe\anaconda3\Lib\site-packages\traitlets\config\application.py", line 1075, in launch_instance
app.start()
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelapp.py", line 701, in start
self.io_loop.start()
File "C:\Users\alexe\anaconda3\Lib\site-packages\tornado\platform\asyncio.py", line 205, in start
self.asyncio_loop.run_forever()
File "C:\Users\alexe\anaconda3\Lib\asyncio\windows_events.py", line 322, in run_forever
super().run_forever()
File "C:\Users\alexe\anaconda3\Lib\asyncio\base_events.py", line 641, in run_forever
self._run_once()
File "C:\Users\alexe\anaconda3\Lib\asyncio\base_events.py", line 1986, in _run_once
handle._run()
File "C:\Users\alexe\anaconda3\Lib\asyncio\events.py", line 88, in _run
self.context.run(self.callback, *self.args)
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 534, in dispatch_queue
await self.process_one()
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 523, in process_one
await dispatch(*args)
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 429, in dispatch_shell
await result
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 767, in execute_request
reply_content = await reply_content
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\ipkernel.py", line 429, in do_execute
res = shell.run_cell(
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\zmqshell.py", line 549, in run_cell
return super().run_cell(*args, **kwargs)
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3075, in run_cell
result = self.run_cell(
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3130, in run_cell
result = runner(coro)
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\async_helpers.py", line 128, in pseudo_sync_runner
coro.send(None)
File "C:\Users\alexe\anaconda3\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 "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3517, in run_ast_nodes
if await self.run_code(code, result, async=asy):
File "C:\Users\alexe\anaconda3\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\alexe\AppData\Local\Temp\ipykernel_9096\191887921.py", line 3, in
import pandas as pd
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas_init.py", line 62, in
from pandas.core.api import (
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\core\api.py", line 28, in
from pandas.core.arrays import Categorical
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\core\arrays_init.py", line 1, in
from pandas.core.arrays.arrow import ArrowExtensionArray
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\core\arrays\arrow_init.py", line 5, in
from pandas.core.arrays.arrow.array import ArrowExtensionArray
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\core\arrays\arrow\array.py", line 50, in
from pandas.core import (
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\core\ops_init.py", line 8, in
from pandas.core.ops.array_ops import (
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\core\ops\array_ops.py", line 56, in
from pandas.core.computation import expressions
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\core\computation\expressions.py", line 21, in
from pandas.core.computation.check import NUMEXPR_INSTALLED
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\core\computation\check.py", line 5, in
ne = import_optional_dependency("numexpr", errors="warn")
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\compat_optional.py", line 135, in import_optional_dependency
module = importlib.import_module(name)
File "C:\Users\alexe\anaconda3\Lib\importlib_init.py", line 90, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "C:\Users\alexe\anaconda3\Lib\site-packages\numexpr_init.py", line 24, in
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 "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel_launcher.py", line 17, in
app.launch_new_instance()
File "C:\Users\alexe\anaconda3\Lib\site-packages\traitlets\config\application.py", line 1075, in launch_instance
app.start()
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelapp.py", line 701, in start
self.io_loop.start()
File "C:\Users\alexe\anaconda3\Lib\site-packages\tornado\platform\asyncio.py", line 205, in start
self.asyncio_loop.run_forever()
File "C:\Users\alexe\anaconda3\Lib\asyncio\windows_events.py", line 322, in run_forever
super().run_forever()
File "C:\Users\alexe\anaconda3\Lib\asyncio\base_events.py", line 641, in run_forever
self._run_once()
File "C:\Users\alexe\anaconda3\Lib\asyncio\base_events.py", line 1986, in _run_once
handle._run()
File "C:\Users\alexe\anaconda3\Lib\asyncio\events.py", line 88, in _run
self._context.run(self.callback, *self.args)
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 534, in dispatch_queue
await self.process_one()
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 523, in process_one
await dispatch(*args)
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 429, in dispatch_shell
await result
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 767, in execute_request
reply_content = await reply_content
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\ipkernel.py", line 429, in do_execute
res = shell.run_cell(
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\zmqshell.py", line 549, in run_cell
return super().run_cell(*args, **kwargs)
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3075, in run_cell
result = self.run_cell(
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3130, in run_cell
result = runner(coro)
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\async_helpers.py", line 128, in pseudo_sync_runner
coro.send(None)
File "C:\Users\alexe\anaconda3\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 "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3517, in run_ast_nodes
if await self.run_code(code, result, async=asy):
File "C:\Users\alexe\anaconda3\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\alexe\AppData\Local\Temp\ipykernel_9096\191887921.py", line 3, in
import pandas as pd
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas_init.py", line 62, in
from pandas.core.api import (
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\core\api.py", line 28, in
from pandas.core.arrays import Categorical
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\core\arrays_init.py", line 1, in
from pandas.core.arrays.arrow import ArrowExtensionArray
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\core\arrays\arrow_init.py", line 5, in
from pandas.core.arrays.arrow.array import ArrowExtensionArray
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\core\arrays\arrow\array.py", line 64, in
from pandas.core.arrays.masked import BaseMaskedArray
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\core\arrays\masked.py", line 60, in
from pandas.core import (
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\core\nanops.py", line 52, in
bn = import_optional_dependency("bottleneck", errors="warn")
File "C:\Users\alexe\anaconda3\Lib\site-packages\pandas\compat_optional.py", line 135, in import_optional_dependency
module = importlib.import_module(name)
File "C:\Users\alexe\anaconda3\Lib\importlib_init.py", line 90, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "C:\Users\alexe\anaconda3\Lib\site-packages\bottleneck_init.py", line 7, in
from .move import (move_argmax, move_argmin, move_max, move_mean, move_median,
ImportError Traceback (most recent call last)
File ~\anaconda3\Lib\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 "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel_launcher.py", line 17, in
app.launch_new_instance()
File "C:\Users\alexe\anaconda3\Lib\site-packages\traitlets\config\application.py", line 1075, in launch_instance
app.start()
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelapp.py", line 701, in start
self.io_loop.start()
File "C:\Users\alexe\anaconda3\Lib\site-packages\tornado\platform\asyncio.py", line 205, in start
self.asyncio_loop.run_forever()
File "C:\Users\alexe\anaconda3\Lib\asyncio\windows_events.py", line 322, in run_forever
super().run_forever()
File "C:\Users\alexe\anaconda3\Lib\asyncio\base_events.py", line 641, in run_forever
self._run_once()
File "C:\Users\alexe\anaconda3\Lib\asyncio\base_events.py", line 1986, in _run_once
handle._run()
File "C:\Users\alexe\anaconda3\Lib\asyncio\events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 534, in dispatch_queue
await self.process_one()
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 523, in process_one
await dispatch(*args)
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 429, in dispatch_shell
await result
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 767, in execute_request
reply_content = await reply_content
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\ipkernel.py", line 429, in do_execute
res = shell.run_cell(
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\zmqshell.py", line 549, in run_cell
return super().run_cell(*args, **kwargs)
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3075, in run_cell
result = self._run_cell(
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3130, in run_cell
result = runner(coro)
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\async_helpers.py", line 128, in pseudo_sync_runner
coro.send(None)
File "C:\Users\alexe\anaconda3\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 "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3517, in run_ast_nodes
if await self.run_code(code, result, async=asy):
File "C:\Users\alexe\anaconda3\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\alexe\AppData\Local\Temp\ipykernel_9096\191887921.py", line 5, in
import seaborn as sns
File "C:\Users\alexe\anaconda3\Lib\site-packages\seaborn_init.py", line 5, in
from .relational import * # noqa: F401,F403
File "C:\Users\alexe\anaconda3\Lib\site-packages\seaborn\relational.py", line 21, in
from .statistics import EstimateAggregator, WeightedAggregator
File "C:\Users\alexe\anaconda3\Lib\site-packages\seaborn_statistics.py", line 32, in
from scipy.stats import gaussian_kde
File "C:\Users\alexe\anaconda3\Lib\site-packages\scipy\stats_init.py", line 606, in
from .stats_py import *
File "C:\Users\alexe\anaconda3\Lib\site-packages\scipy\stats_stats_py.py", line 37, in
from scipy import sparse
File "C:\Users\alexe\anaconda3\Lib\site-packages\scipy_init.py", line 134, in getattr
return importlib.import_module(f'scipy.{name}')
File "C:\Users\alexe\anaconda3\Lib\importlib_init.py", line 90, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "C:\Users\alexe\anaconda3\Lib\site-packages\scipy\sparse_init.py", line 295, in
from ._csr import *
File "C:\Users\alexe\anaconda3\Lib\site-packages\scipy\sparse_csr.py", line 11, in
from ._sparsetools import (csr_tocsc, csr_tobsr, csr_count_blocks,
ImportError Traceback (most recent call last)
File ~\anaconda3\Lib\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 "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel_launcher.py", line 17, in
app.launch_new_instance()
File "C:\Users\alexe\anaconda3\Lib\site-packages\traitlets\config\application.py", line 1075, in launch_instance
app.start()
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelapp.py", line 701, in start
self.io_loop.start()
File "C:\Users\alexe\anaconda3\Lib\site-packages\tornado\platform\asyncio.py", line 205, in start
self.asyncio_loop.run_forever()
File "C:\Users\alexe\anaconda3\Lib\asyncio\windows_events.py", line 322, in run_forever
super().run_forever()
File "C:\Users\alexe\anaconda3\Lib\asyncio\base_events.py", line 641, in run_forever
self._run_once()
File "C:\Users\alexe\anaconda3\Lib\asyncio\base_events.py", line 1986, in _run_once
handle._run()
File "C:\Users\alexe\anaconda3\Lib\asyncio\events.py", line 88, in _run
self._context.run(self.callback, *self.args)
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 534, in dispatch_queue
await self.process_one()
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 523, in process_one
await dispatch(*args)
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 429, in dispatch_shell
await result
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 767, in execute_request
reply_content = await reply_content
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\ipkernel.py", line 429, in do_execute
res = shell.run_cell(
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\zmqshell.py", line 549, in run_cell
return super().run_cell(*args, **kwargs)
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3075, in run_cell
result = self.run_cell(
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3130, in run_cell
result = runner(coro)
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\async_helpers.py", line 128, in pseudo_sync_runner
coro.send(None)
File "C:\Users\alexe\anaconda3\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 "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3517, in run_ast_nodes
if await self.run_code(code, result, async=asy):
File "C:\Users\alexe\anaconda3\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\alexe\AppData\Local\Temp\ipykernel_9096\191887921.py", line 5, in
import seaborn as sns
File "C:\Users\alexe\anaconda3\Lib\site-packages\seaborn_init.py", line 6, in
from .regression import * # noqa: F401,F403
File "C:\Users\alexe\anaconda3\Lib\site-packages\seaborn\regression.py", line 11, in
import statsmodels
File "C:\Users\alexe\anaconda3\Lib\site-packages\statsmodels_init.py", line 1, in
from statsmodels.compat.patsy import monkey_patch_cat_dtype
File "C:\Users\alexe\anaconda3\Lib\site-packages\statsmodels\compat_init.py", line 1, in
from statsmodels.tools.testing import PytestTester
File "C:\Users\alexe\anaconda3\Lib\site-packages\statsmodels\tools_init.py", line 1, in
from .tools import add_constant, categorical
File "C:\Users\alexe\anaconda3\Lib\site-packages\statsmodels\tools\tools.py", line 6, in
import scipy.linalg
File "C:\Users\alexe\anaconda3\Lib\site-packages\scipy\linalg_init.py", line 203, in
from ._misc import *
File "C:\Users\alexe\anaconda3\Lib\site-packages\scipy\linalg_misc.py", line 3, in
from .blas import get_blas_funcs
File "C:\Users\alexe\anaconda3\Lib\site-packages\scipy\linalg\blas.py", line 213, in
from scipy.linalg import _fblas
ImportError Traceback (most recent call last)
File ~\anaconda3\Lib\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 "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel_launcher.py", line 17, in
app.launch_new_instance()
File "C:\Users\alexe\anaconda3\Lib\site-packages\traitlets\config\application.py", line 1075, in launch_instance
app.start()
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelapp.py", line 701, in start
self.io_loop.start()
File "C:\Users\alexe\anaconda3\Lib\site-packages\tornado\platform\asyncio.py", line 205, in start
self.asyncio_loop.run_forever()
File "C:\Users\alexe\anaconda3\Lib\asyncio\windows_events.py", line 322, in run_forever
super().run_forever()
File "C:\Users\alexe\anaconda3\Lib\asyncio\base_events.py", line 641, in run_forever
self._run_once()
File "C:\Users\alexe\anaconda3\Lib\asyncio\base_events.py", line 1986, in _run_once
handle._run()
File "C:\Users\alexe\anaconda3\Lib\asyncio\events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 534, in dispatch_queue
await self.process_one()
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 523, in process_one
await dispatch(*args)
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 429, in dispatch_shell
await result
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\kernelbase.py", line 767, in execute_request
reply_content = await reply_content
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\ipkernel.py", line 429, in do_execute
res = shell.run_cell(
File "C:\Users\alexe\anaconda3\Lib\site-packages\ipykernel\zmqshell.py", line 549, in run_cell
return super().run_cell(*args, **kwargs)
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3075, in run_cell
result = self._run_cell(
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3130, in run_cell
result = runner(coro)
File "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\async_helpers.py", line 128, in pseudo_sync_runner
coro.send(None)
File "C:\Users\alexe\anaconda3\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 "C:\Users\alexe\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3517, in run_ast_nodes
if await self.run_code(code, result, async=asy):
File "C:\Users\alexe\anaconda3\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\alexe\AppData\Local\Temp\ipykernel_9096\191887921.py", line 5, in
import seaborn as sns
File "C:\Users\alexe\anaconda3\Lib\site-packages\seaborn_init.py", line 7, in
from .categorical import * # noqa: F401,F403
File "C:\Users\alexe\anaconda3\Lib\site-packages\seaborn\categorical.py", line 19, in
from seaborn.stats.density import KDE
File "C:\Users\alexe\anaconda3\Lib\site-packages\seaborn_stats\density.py", line 10, in
from scipy.stats import gaussian_kde
File "C:\Users\alexe\anaconda3\Lib\site-packages\scipy\stats_init.py", line 606, in
from .stats_py import *
File "C:\Users\alexe\anaconda3\Lib\site-packages\scipy\stats_stats_py.py", line 37, in
from scipy import sparse
File "C:\Users\alexe\anaconda3\Lib\site-packages\scipy_init.py", line 134, in getattr
return importlib.import_module(f'scipy.{name}')
File "C:\Users\alexe\anaconda3\Lib\importlib_init.py", line 90, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "C:\Users\alexe\anaconda3\Lib\site-packages\scipy\sparse_init.py", line 295, in
from ._csr import *
File "C:\Users\alexe\anaconda3\Lib\site-packages\scipy\sparse_csr.py", line 11, in
from ._sparsetools import (csr_tocsc, csr_tobsr, csr_count_blocks,
ImportError Traceback (most recent call last)
File ~\anaconda3\Lib\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.
ValueError Traceback (most recent call last)
Cell In[1], line 5
3 import pandas as pd
4 import matplotlib.pyplot as plt
----> 5 import seaborn as sns
6 get_ipython().run_line_magic('matplotlib', 'inline')
File ~\anaconda3\Lib\site-packages\seaborn_init_.py:9
7 from .categorical import * # noqa: F401,F403
8 from .distributions import * # noqa: F401,F403
----> 9 from .matrix import * # noqa: F401,F403
10 from .miscplot import * # noqa: F401,F403
11 from .axisgrid import * # noqa: F401,F403
File ~\anaconda3\Lib\site-packages\seaborn\matrix.py:11
9 import pandas as pd
10 try:
---> 11 from scipy.cluster import hierarchy
12 _no_scipy = False
13 except ImportError:
File ~\anaconda3\Lib\site-packages\scipy\cluster_init_.py:27
1 """
2 =========================================
3 Clustering package (:mod:
scipy.cluster
)(...)
23
24 """
25 all = ['vq', 'hierarchy']
---> 27 from . import vq, hierarchy
29 from scipy._lib._testutils import PytestTester
30 test = PytestTester(name)
File ~\anaconda3\Lib\site-packages\scipy\cluster\vq.py:74
70 from scipy._lib._array_api import (
71 _asarray, array_namespace, size, atleast_nd, copy, cov
72 )
73 from scipy._lib._util import check_random_state, rng_integers
---> 74 from scipy.spatial.distance import cdist
76 from . import _vq
78 docformat = 'restructuredtext'
File ~\anaconda3\Lib\site-packages\scipy\spatial_init_.py:110
1 """
2 =============================================================
3 Spatial algorithms and data structures (:mod:
scipy.spatial
)(...)
107 QhullError
108 """ # noqa: E501
--> 110 from ._kdtree import *
111 from ._ckdtree import *
112 from ._qhull import *
File ~\anaconda3\Lib\site-packages\scipy\spatial_kdtree.py:4
1 # Copyright Anne M. Archibald 2008
2 # Released under the scipy license
3 import numpy as np
----> 4 from ._ckdtree import cKDTree, cKDTreeNode
6 all = ['minkowski_distance_p', 'minkowski_distance',
7 'distance_matrix',
8 'Rectangle', 'KDTree']
11 def minkowski_distance_p(x, y, p=2):
File _ckdtree.pyx:1, in init scipy.spatial._ckdtree()
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
The text was updated successfully, but these errors were encountered: