Python installation NumPy encountered a workaround that cannot be uninstalled

Source: Internet
Author: User
Python installation module NumPy A workaround for a situation that cannot be uninstalled

Python needs to update the NumPy module when installing Seaborn, but the update fails with the following error output:


  Cannot uninstall ‘numpy‘. It is a distutils installed project and thus we ca

Check, some netizens said can shut down the SIP Mac, but because the operating system version is low, did not work.

The solution that is used in the end is relatively simple.

Perform

  site.getsitepackages()

Output

  [‘/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python‘, ‘/Library/Python/2.7/site-packages‘]

Delete the NumPy folders involved and execute them again.

  pip install numpy

Installation Successful

  Installing collected packages: numpy  Successfully installed numpy-1.15.1


原文:http://www.vmfor.com/p/101820499405.html

Python installation NumPy encountered a workaround that cannot be uninstalled

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.