Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pandas and numpy
#1
I am using anaconda3 and python 3.7

Here is my code:

import numpy as np
import pandas as pd

data = pd.read_csv("summary.csv")

data.head()
Here is the error I get:

Quote:C:\Users\gary\Anaconda3\envs\py37\python.exe C:/Users/gary/pyfiles/condacurd/gl.py
Traceback (most recent call last):
File "C:\Users\gary\Anaconda3\envs\py37\lib\site-packages\numpy\core\__init__.py", line 16, in <module>
from . import multiarray
ImportError: DLL load failed: The specified module could not be found.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:/Users/gary/pyfiles/condacurd/gl.py", line 1, in <module>
import numpy
File "C:\Users\gary\Anaconda3\envs\py37\lib\site-packages\numpy\__init__.py", line 142, in <module>
from . import add_newdocs
File "C:\Users\gary\Anaconda3\envs\py37\lib\site-packages\numpy\add_newdocs.py", line 13, in <module>
from numpy.lib import add_newdoc
File "C:\Users\gary\Anaconda3\envs\py37\lib\site-packages\numpy\lib\__init__.py", line 8, in <module>
from .type_check import *
File "C:\Users\gary\Anaconda3\envs\py37\lib\site-packages\numpy\lib\type_check.py", line 11, in <module>
import numpy.core.numeric as _nx
File "C:\Users\gary\Anaconda3\envs\py37\lib\site-packages\numpy\core\__init__.py", line 26, in <module>
raise ImportError(msg)
ImportError:
Importing the multiarray numpy extension module failed. Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try git clean -xdf (removes all
files not under version control). Otherwise reinstall numpy.

Original error was: DLL load failed: The specified module could not be found.


Process finished with exit code 1

I have searched the web for this problem and there are many solutions. I have tried must of them with no results.
I have reinstall Anaconda3, Pandas, Numpy. Ran git clean -xdf.

Has anyone really solved this?
Gary
Reply


Messages In This Thread
Pandas and numpy - by gehrenfeld - Dec-17-2018, 10:49 PM
RE: Pandas and numpy - by snippsat - Dec-17-2018, 11:34 PM
RE: Pandas and numpy - by gehrenfeld - Dec-17-2018, 11:47 PM
RE: Pandas and numpy - by snippsat - Dec-18-2018, 01:02 AM
RE: Pandas and numpy - by gehrenfeld - Dec-18-2018, 01:12 AM
RE: Pandas and numpy - by snippsat - Dec-18-2018, 02:18 AM
RE: Pandas and numpy - by gehrenfeld - Dec-18-2018, 01:24 PM
RE: Pandas and numpy - by ayaz786amd - Dec-26-2018, 07:37 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Numpy] How to store different data type in one numpy array? water 7 791 Mar-26-2024, 02:18 PM
Last Post: snippsat
  Pandas dataframes and numpy arrays bytecrunch 1 1,373 Oct-11-2022, 08:08 PM
Last Post: Larz60+
  Numpy returns "TypeError: unsupported operand type(s) for *: 'numpy.ufunc' and 'int'" kalle 2 2,698 Jul-19-2022, 06:31 AM
Last Post: paul18fr
  How to compare two json and write to third json differences with pandas and numpy onenessboy 0 4,761 Jul-24-2020, 01:56 PM
Last Post: onenessboy
  What is the mechanism of numpy function returning pandas object? Ibaraki 2 2,554 Apr-04-2020, 10:57 PM
Last Post: Ibaraki
  "erlarge" a numpy-matrix to numpy-array PhysChem 2 3,046 Apr-09-2019, 04:54 PM
Last Post: PhysChem
  Convert indexing For Loop from MATLAB (uses numpy and pandas) bentaz 3 4,232 Mar-20-2018, 08:29 PM
Last Post: bentaz

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020