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

前端 未结 28 2177
清歌不尽
清歌不尽 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 16:55

    If you're running your program on PyCharm on Windows, there is a known bug, because PyCharm simply doesn't add env-related paths to PATH.

    The issue is fixed in the 2019.1 Early Access Preview (EAP) build.

    For me installing the EAP fixed the issue.

    0 讨论(0)
  • 2020-11-27 16:58

    I had this problem with last version of numpy 1.16.x

    Problem resolved with

    python3 -m pip uninstall numpy

    python3 -m pip install numpy==1.14.0

    0 讨论(0)
  • 2020-11-27 16:58

    I had the same issue while using Microsoft Visual Code with Python 3.7.3 64-bit('base':conda)as my python interpreter. Before running any code type the following three commands:

    C:/ProgramData/Anaconda3/Scripts/activate #activate conda Scripts directory
    conda activate base                       #activate conda
    & C:/ProgramData/Anaconda3/python.exe     #to run python
    
    0 讨论(0)
  • 2020-11-27 16:59

    I had the same issue. It was because I had multiple versions of numpy installed. Remove all versions by repeatedly using:

    pip uninstall numpy

    Then re-install it with the command:

    pip install numpy

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

    Uninstall all pip packages that you're having problems with. Manually remove all site-packages files. If you're using MacPorts, sudo port clean .

    Then try reinstalling. Sometimes, there are files that should have been removed, but weren't if the installation was abruptly interrupted or something.

    There could be an issue with conflicting versions of the package(s), as well as potentially issues with Pathing. Are you sure you've set the correct Path for your binaries? (/opt/local/bin, /anaconda2/bin, etc.)

    Another issue could be some PYTHONPATH that's explicitly looking in the wrong place for the file.

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

    you are running python 3.7

    create environment for python 3.6

    python3.6 filename.py

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