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

前端 未结 28 2468
清歌不尽
清歌不尽 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:04

    This worked in my anaconda environment, but I do not know why conda does not work. For some reason conda uninstall was not sufficient. This only worked with conda remove.

    conda remove pandas
    conda remove numpy
    conda install pip
    pip install pandas
    

    *With help from this answer

    This raises the following import warning in python 3.6 and 3.7:

    ImportWarning: can't resolve package from __spec__ or __package__, falling back on __name__ and __path__
    

    If you with to ignore this warning (and maybe other ImportWarnings), add the following to your script before importing pandas:

    import warnings
    warnings.filterwarnings('ignore', category=ImportWarning, module='_bootstrap.py')
    

提交回复
热议问题