본문 바로가기

Dev/Python

RuntimeError: The current Numpy installation (Feat.pandas-numpy)

728x90
반응형

판다스를 설치 후 갑자기 아래와 같은 오류가 발생했다.

C:\Users\user\PycharmProjects\pythonOcrTest\venv\Scripts\python.exe C:/Users/user/PycharmProjects/pythonOcrTest/ocrTest/ocrTest.py
Traceback (most recent call last):
  File "C:/Users/user/PycharmProjects/pythonOcrTest/ocrTest/ocrTest.py", line 1, in <module>
    import pytesseract
  File "C:\Users\user\PycharmProjects\pythonOcrTest\venv\lib\site-packages\pytesseract\__init__.py", line 1, in <module>
    from .pytesseract import (  # noqa: F401
  File "C:\Users\user\PycharmProjects\pythonOcrTest\venv\lib\site-packages\pytesseract\pytesseract.py", line 31, in <module>
    from numpy import ndarray
  File "C:\Users\user\PycharmProjects\pythonOcrTest\venv\lib\site-packages\numpy\__init__.py", line 305, in <module>
    _win_os_check()
  File "C:\Users\user\PycharmProjects\pythonOcrTest\venv\lib\site-packages\numpy\__init__.py", line 302, in _win_os_check
    raise RuntimeError(msg.format(__file__)) from None
RuntimeError: The current Numpy installation ('C:\\Users\\user\\PycharmProjects\\pythonOcrTest\\venv\\lib\\site-packages\\numpy\\__init__.py') fails to pass a sanity check due to a bug in the windows runtime. See this issue for more information: https://tinyurl.com/y3dm3h86

Process finished with exit code 1

 

확인해 보니 pandas 설치시 설치된 numpy가 호환 문제로 이슈가 발생한거 같다.

 

처리 방법은 numpy를 하위 버전으로 다시 설치 하면 된다.

 

pip install numpy==1.19.3

설치 후 다시 실행하면 처음에 발생되 오류는 해결된다.

728x90
반응형