NumPy in IDLE (Python 3.3.2) on Mac OSx 10.8

血红的双手。 提交于 2019-12-02 06:58:26

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.

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

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