저는 Mac에 있는데, numpy
과 sklearn
순서로 설치했습니다. 지금, 나는 아직 여러 번에 언급 된 이러한 오류에 직면하고 있습니다 :MacOSX에서 numpy를 올바르게 제거하는 방법은 무엇입니까?
sklearn "numpy.dtype has the wrong size, try recompiling" in both pycharm and terminal
ValueError: numpy.dtype has the wrong size, try recompiling
ImportError in importing from sklearn: cannot import name check_build
그래서, 내가 numpy
을 제거하여이 오류를 교정하려고, 이전 버전을 다시 설치하십시오.
1) sudo pip install --upgrade numpy
..gives 권한 오류
...OSError: [Errno 1] Operation not permitted: '/tmp/pip-OVY0Vq-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy-1.8.0rc1-py2.7.egg-info'...
2) 나는 brew uninstall numpy
을 시도했지만 import numpy
는 여전히 심지어 쉘 다시 시작한 후 작동합니다.
유일한 것은 내가 수동으로 맥 seeem가 sudo rm -rf /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy
에서 찾을 수,에 numpy
파일을 모두 삭제하는 것입니다 생각할 수있는 왼쪽 ....하지만 심지어 나에게 권한 오류를 제공합니다 . 뭐라 구요?
https://conda.io/docs/user-guide/install/macos.html
를 참조하십시오. 예 : http://docs.python-guide.org/en/latest/dev/virtualenvs/ – reticentroot하지만 올바른 파일인지 확인하십시오. – Sother
'sudo'와도 ..... 그것은 내가 그들을 제거하게하지 않을 것이다 !! 제안 ?? – Sother