Python Pandas - Missing required dependencies ['numpy'] 1

前端 未结 28 2285
清歌不尽
清歌不尽 2020-11-27 16:32

Since yesterday I\'ve had this error when I try to import packages on anaconda :

ImportError: Missing required dependencies [\'numpy\']

I have t

相关标签:
28条回答
  • 2020-11-27 17:13

    I am using Win10 and Conda, and this issue just append to me when upgrading python 3.7.2-h8c8aaf0_0 --> 3.7.2-h8c8aaf0_2. I solved it by return to the previous version with

    conda install python=3.7.2=h8c8aaf0_0
    
    0 讨论(0)
  • 2020-11-27 17:15

    What happens if you try to import numpy?

    Have you tried'

    pip install --upgrade numpy
    pip install --upgrade pandas
    
    0 讨论(0)
  • 2020-11-27 17:16

    I had to install this other package:

    sudo apt-get install libatlas-base-dev
    

    Seems like it is a dependency for numpy but the pip or apt-get don't install it automatically for whatever reason.

    0 讨论(0)
  • 2020-11-27 17:17

    The data manipulation capabilities of pandas are built on top of the numpy library. In a way, numpy is a dependency of the pandas library. If you want to use pandas, you have to make sure you also have numpy. When you install pandas using pip, it automatically installs numpy. If it doesn't, try the following

    pip install -U numpy pandas

    For conda

    conda install numpy pandas

    0 讨论(0)
提交回复
热议问题