How to correctly uninstall numpy on MacOSX?

前端 未结 7 2205
一整个雨季
一整个雨季 2020-12-29 04:35

I\'m on a Mac, and I installed numpy and sklearn in that order. Now, I\'m faced with these errors that have already been mentioned on SO several t

7条回答
  •  不思量自难忘°
    2020-12-29 04:39

    I guess you are using MAC OS. I did a workaround to ignore the existing version of numpy (which MAC won't let you uninstall), and install an upgraded version.

    Command :

    pip install --upgrade --ignore-installed --install-option '--install-data=/usr/local' numpy
    

    Worked fine for me.

提交回复
热议问题