Data scientist/Tensorflow

Tensorflow| RuntimeError: The current Numpy installation fails to pass a sanity check

작은벼리 2020. 12. 15. 11:03

 

  • GitHub에서 github.com/peteryuX/retinaface-tf2 로 retinaface를 실행해보다 numpy installation error 발생
    • 환경과 requirement 모두 권장하는 방식대로 가상환경 하나 구축해서 설치했음

출처: 나, tfrecord로 convert 하는데 생기는 에러

RuntimeError: The current Numpy installation 
('C:\\Users\\사용자이름\\anaconda3\\envs\\retinaface-tf2\\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: tinyurl.com/y3dm3h86
 

fmod(), after an update to windows 2004, is causing a strange interaction with other code - Developer Community

Sign in Visual Studio Visual Studio for Mac .NET C++ Azure DevOps Azure DevOps Server (TFS) Topics Problems Features Problems Features Users Badges

developercommunity.visualstudio.com

  • pip install numpy 해보니 이미 설치되었다고 나옴 
Requirement already satisfied: 
numpy in c:\users\사용자이름\anaconda3\envs\retinaface-tf2\lib\site-packages (1.19.4)

 

  • conda install numpy로 설치시 필요한 package들 더 나오며 추가 설치됨
 

python - 콘도 환경 내 conda와 pip 설치의 차이

나는 최근에 아나콘다 환경을 사용하여 전환 한이 질문을 많이하고있는 것처럼 보입니다. 그러나 나는 인터넷 검색을 끝내고 지나치지는 않습니다. 모든 프로젝트를 별도의 조건으로 유지하고

stackoverrun.com

출처: 나, conda install numpy시 3개 package 추가 설치됨

 

결론 | numpy가 install 되어 있는데 계속current Numpy installation fails to pass a sanity check 라는 에러가 뜬다면, conda install numpy로 관련 dependency를 모두 manage 하면서 설치하면 됨