Hermes Morales
Hermes Morales

Reputation: 637

'numpy' has no attribute 'core'

I have installed tensorflow and when calling it I received some errors messages related to numpy. The last one, that I can not fix is:enter image description here

AttributeError: module 'numpy' has no attribute 'core'

I obtain this message either importing tensorflow or importing numpy.

I have tried to update numpy in the Anaconda Prompt by:

 (base) C:\Users\Paisa>pip install --upgrade numpy

proposed in enter link description here and I obtained the following message:

> Requirement already up-to-date: numpy in c:\users\paisa\anaconda3\lib\site-packages (1.16.0)

I shall appreciate any help to fix this problem

Upvotes: 1

Views: 1994

Answers (1)

Shubham Panchal
Shubham Panchal

Reputation: 4289

As you are installing Tensorflow via pip, the dependencies of a package ( in this case numpy , scipy , h5py etc. ) will not be installed. There might be some conflicts with versions of a specific package.

  • For pip, you can try uninstalling everything and installing back.

  • An alternative is to conda in anaconda envs. Conda will install all required packages at once without any need to install them individually.

    conda install tensorflow

Upvotes: 1

Related Questions