%runfile C:/Users/SLB-CURRUTIA/Desktop/Divisas/untitled0.py --wdir Traceback (most…
- User
%runfile C:/Users/SLB-CURRUTIA/Desktop/Divisas/untitled0.py --wdir Traceback (most recent call last):
File ~\anaconda3\envs\tensorflow_env\Lib\site-packages\spyder_kernels\customize\utils.py:209 in exec_encapsulate_locals exec_fun(compile(code_ast, filename, "exec"), globals)
File c:\users\slb-currutia\desktop\divisas\untitled0.py:9 import pandas as pd
File ~\anaconda3\envs\tensorflow_env\Lib\site-packages\pandas_init_.py:37 from pandas._config import (
File ~\anaconda3\envs\tensorflow_env\Lib\site-packages\pandas_config_init_.py:20 from pandas._config import config
File ~\anaconda3\envs\tensorflow_env\Lib\site-packages\pandas_config\config.py:68 from pandas._typing import (
File ~\anaconda3\envs\tensorflow_env\Lib\site-packages\pandas_typing.py:198 np.random.Generator,
File ~\anaconda3\envs\tensorflow_env\Lib\site-packages\numpy_init_.py:351 in getattr def _sanity_check():
File ~\anaconda3\envs\tensorflow_env\Lib\site-packages\numpy\random_init_.py:180 from . import _pickle
File ~\anaconda3\envs\tensorflow_env\Lib\site-packages\numpy\random_pickle.py:1 from .mtrand import RandomState
File numpy\random\mtrand.pyx:1 in init numpy.random.mtrand
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
- Assistant
The error you encountered,
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject, suggests that there is a mismatch between the compiled code of NumPy and the installed version of the library. This kind of issue typically arises from an incompatible version of a shared library (DLL, SO, or DYLIB) or an improper mix of libraries within a Python environment. - User
en anaconda
- Assistant
If you're using Anaconda and encountering the
ValueErrorindicating a potential binary incompatibility with NumPy, you can follow these Anaconda-specific steps to resolve the issue:-
: First, ensure you're in the correct Anaconda environment where you need to fix the issue. You can activate the environment using:
-