NumPy in IDLE (Python 3.3.2) on Mac OSx 10.8

蓝咒 提交于 2019-12-02 13:13:38

问题


I know this may be a repeat question, but all the answers I've found on here are WAY above my head. I'm very new at Python, but I would like to use NumPy in IDLE (python 3.3.2). IDLE doesn't seem to access the numpy that comes w/ OSX 10.8 (which is python 2.7). I can't find a Numpy for Python 3 installer for Mac OSX. All of the instructions I've found are very complicated and assume I know a lot more than I do and they still wouldn't help me get it into IDLE even if I could execute them. Can anyone point me to instructions for BEGINNERS on this installation? For example, most start with a compiling step - I'm not sure how to do this. I'd appreciate any help you can give. Thanks.


回答1:


If this is a fresh python install:

  1. Type which python into a terminal window to make sure that the correct python is selected. I am guessing that this should be /Library/Frameworks/Python.framework/Versions/3.3.
  2. Download setuptools and pip from https://pypi.python.org and untar both (can just double click in a osx window).
  3. In a terminal change directory to the downloaded setuptools folder: cd ~/Downloads/setuptools-x.x.x
  4. Type python setup.py install.
  5. Repeat 3 & 4 for pip.
  6. Now you can type pip install numpy and it will download and install numpy for you.

You might want to install everything through a single executable package. A free example can be found here (Anaconda), this includes the entire scipy suite and some extras. You will likely not need the majority of these, but it does include numpy and scipy in a very convenient package.




回答2:


These should be simple enough instructions for you http://docs.python.org/3/using/mac.html



来源:https://stackoverflow.com/questions/17819227/numpy-in-idle-python-3-3-2-on-mac-osx-10-8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!