Python on my Mac is a mess, help me uninstall what I don't need

后端 未结 2 665
我在风中等你
我在风中等你 2020-12-21 18:05

I\'m unable to import numpy in Python 2.7 in the shell. I installed Python with brew install, then numpy with sudo pip install. I tried without

相关标签:
2条回答
  • 2020-12-21 18:59

    That output is normal. Have you tried running brew install openssl followed by brew link --force openssl and then brew install python. The following thread helps describe the issue https://github.com/Homebrew/homebrew/issues/40516

    0 讨论(0)
  • 2020-12-21 19:00

    As for workaround, try downgrading your Python to 2.7.9 like:

    brew switch python 2.7.9
    

    by overriding the existing one, as it seems there is some particular problem with 2.7.10. Then re-link it again (if required).

    Also make sure your PYTHONPATH is correct (you don't override it anywhere in your startup files).

    0 讨论(0)
提交回复
热议问题